#include <fishsound/constants.h>
Go to the source code of this file.
Data Structures | |
struct | FishSoundFormat |
Info about a particular sound format. More... | |
struct | FishSoundInfo |
Info about a particular encoder/decoder instance. More... | |
Typedefs | |
typedef void * | FishSound |
An opaque handle to a FishSound. | |
typedef int(* | FishSoundDecoded )(FishSound *fsound, float **pcm, long frames, void *user_data) |
Signature of a callback for libfishsound to call when it has decoded audio PCM data. | |
typedef int(* | FishSoundEncoded )(FishSound *fsound, unsigned char *buf, long bytes, void *user_data) |
Signature of a callback for libfishsound to call when it has encoded data. | |
Functions | |
int | fish_sound_identify (unsigned char *buf, long bytes) |
Identify a codec based on the first few bytes of data. | |
FishSound * | fish_sound_new (int mode, FishSoundInfo *fsinfo) |
Instantiate a new FishSound* handle. | |
int | fish_sound_set_decoded_callback (FishSound *fsound, FishSoundDecoded decoded, void *user_data) |
Set the callback for libfishsound to call when it has a block of decoded audio ready. | |
int | fish_sound_set_encoded_callback (FishSound *fsound, FishSoundEncoded encoded, void *user_data) |
Set the callback for libfishsound to call when it has a block of encoded data ready. | |
long | fish_sound_decode (FishSound *fsound, unsigned char *buf, long bytes) |
Decode a block of data. | |
long | fish_sound_encode (FishSound *fsound, float **pcm, long frames) |
Encode a block of audio. | |
long | fish_sound_flush (FishSound *fsound) |
Flush any internally buffered data, forcing encode. | |
int | fish_sound_reset (FishSound *fsound) |
Reset the codec state of a FishSound object. | |
int | fish_sound_delete (FishSound *fsound) |
Delete a FishSound object. | |
int | fish_sound_command (FishSound *fsound, int command, void *data, int datasize) |
Command interface. |
|
An opaque handle to a FishSound. This is returned by fishsound_new() and is passed to all other fish_sound_*() functions. |
|
Signature of a callback for libfishsound to call when it has decoded audio PCM data.
|
|
Signature of a callback for libfishsound to call when it has encoded data.
|
|
Command interface.
|
|
Decode a block of data.
|
|
Delete a FishSound object.
|
|
Encode a block of audio.
|
|
Flush any internally buffered data, forcing encode.
|
|
Identify a codec based on the first few bytes of data.
|
|
Instantiate a new FishSound* handle.
|
|
Reset the codec state of a FishSound object.
|
|
Set the callback for libfishsound to call when it has a block of decoded audio ready.
|
|
Set the callback for libfishsound to call when it has a block of encoded data ready.
|