|
libfishsound 1.0.1
|
Encode functions and callback prototypes. More...
Go to the source code of this file.
Typedefs | |
| 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. More... | |
Functions | |
| 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. More... | |
| long | fish_sound_encode_float (FishSound *fsound, float *pcm[], long frames) |
| Encode a block of PCM audio given as non-interleaved floats. More... | |
| long | fish_sound_encode_float_ilv (FishSound *fsound, float **pcm, long frames) |
| Encode a block of audio given as interleaved floats. More... | |
Encode functions and callback prototypes.
| 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.
| fsound | The FishSound* handle |
| buf | The encoded data |
| bytes | The count of bytes encoded |
| user_data | Arbitrary user data |
| 0 | to continue |
| non-zero | to stop encoding immediately and return control to the fish_sound_encode() caller |
| long fish_sound_encode_float | ( | FishSound * | fsound, |
| float * | pcm[], | ||
| long | frames | ||
| ) |
Encode a block of PCM audio given as non-interleaved floats.
| fsound | A FishSound* handle (created with mode FISH_SOUND_ENCODE) |
| pcm | The audio data to encode |
| frames | A count of frames to encode |
| long fish_sound_encode_float_ilv | ( | FishSound * | fsound, |
| float ** | pcm, | ||
| long | frames | ||
| ) |
Encode a block of audio given as interleaved floats.
| fsound | A FishSound* handle (created with mode FISH_SOUND_ENCODE) |
| pcm | The audio data to encode |
| frames | A count of frames to encode |
| 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.
| fsound | A FishSound* handle (created with mode FISH_SOUND_ENCODE) |
| encoded | The callback to call |
| user_data | Arbitrary user data to pass to the callback |