Go to the documentation of this file.
33 #ifndef __FISH_SOUND_H__
34 #define __FISH_SOUND_H__
void * FishSound
An opaque handle to a FishSound.
Definition: fishsound.h:433
@ FISH_SOUND_FLAC
Flac.
Definition: constants.h:61
@ FISH_SOUND_UNKNOWN
Unknown.
Definition: constants.h:52
int fish_sound_command(FishSound *fsound, int command, void *data, int datasize)
Command interface.
@ FISH_SOUND_VORBIS
Vorbis.
Definition: constants.h:55
@ FISH_SOUND_ENCODE
Encode.
Definition: constants.h:46
@ FISH_SOUND_GET_INFO
Retrieve the FishSoundInfo.
Definition: constants.h:82
Info about a particular encoder/decoder instance.
Definition: fishsound.h:404
long fish_sound_encode(FishSound *fsound, float **pcm, long frames)
DEPRECATED FUNCTION.
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.
int fish_sound_reset(FishSound *fsound)
Reset the codec state of a FishSound object.
int fish_sound_set_interleave(FishSound *fsound, int interleave)
DEPRECATED FUNCTION.
int channels
Count of channels.
Definition: fishsound.h:409
Definition: fishsound-encdec.c:42
int fish_sound_prepare_truncation(FishSound *fsound, long next_granulepos, int next_eos)
Prepare truncation details for the next block of data.
long fish_sound_flush(FishSound *fsound)
Flush any internally buffered data, forcing encode.
FishSound * fish_sound_new(int mode, FishSoundInfo *fsinfo)
Instantiate a new FishSound* handle.
@ FISH_SOUND_SPEEX
Speex.
Definition: constants.h:58
int fish_sound_set_frameno(FishSound *fsound, long frameno)
Set the current frame number of a FishSound object.
int fish_sound_delete(FishSound *fsound)
Delete a FishSound object.
int samplerate
Sample rate of audio data in Hz.
Definition: fishsound.h:406
int format
FISH_SOUND_VORBIS, FISH_SOUND_SPEEX, FISH_SOUND_FLAC etc.
Definition: fishsound.h:412
long fish_sound_decode(FishSound *fsound, unsigned char *buf, long bytes)
Decode a block of compressed data.
int fish_sound_set_decoded_float_ilv(FishSound *fsound, FishSoundDecoded_FloatIlv decoded, void *user_data)
Set the callback for libfishsound to call when it has a block of decoded PCM audio ready,...
@ FISH_SOUND_DECODE
Decode.
Definition: constants.h:43
Definition: fishsound-decenc.c:42
long fish_sound_get_frameno(FishSound *fsound)
Query the current frame number of a FishSound object.
int fish_sound_get_interleave(FishSound *fsound)
Query whether a FishSound object is using interleaved PCM.
int fish_sound_identify(unsigned char *buf, long bytes)
Identify a codec based on the first few bytes of data.