#include <fishsound/constants.h>
Go to the source code of this file.
Data Structures | |
| struct | FishSoundInfo |
| Info about a particular encoder/decoder instance. More... | |
| struct | FishSoundFormat |
| Info about a particular sound format. 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. | |
| int | fish_sound_get_interleave (FishSound *fsound) |
| Query whether a FishSound object is using interleaved PCM. | |
| int | fish_sound_set_interleave (FishSound *fsound, int interleave) |
| Set the PCM format used by a FishSound object. | |
|
|
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.
|
|
|
Query whether a FishSound object is using interleaved PCM.
|
|
||||||||||||
|
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.
|
|
||||||||||||
|
Set the PCM format used by a FishSound object. The default value is non-interleaved.
|
1.3.6-20040222