33#ifndef __FISH_SOUND_H__
34#define __FISH_SOUND_H__
Constants used by libfishsound.
Decode functions and callback prototypes.
Encode functions and callback prototypes.
int fish_sound_delete(FishSound *fsound)
Delete a FishSound object.
int fish_sound_set_frameno(FishSound *fsound, long frameno)
Set the current frame number of a FishSound object.
int fish_sound_identify(unsigned char *buf, long bytes)
Identify a codec based on the first few bytes of data.
int fish_sound_command(FishSound *fsound, int command, void *data, int datasize)
Command interface.
FishSound * fish_sound_new(int mode, FishSoundInfo *fsinfo)
Instantiate a new FishSound* handle.
int fish_sound_reset(FishSound *fsound)
Reset the codec state of a FishSound object.
int fish_sound_prepare_truncation(FishSound *fsound, long next_granulepos, int next_eos)
Prepare truncation details for the next block of data.
int fish_sound_get_interleave(FishSound *fsound)
Query whether a FishSound object is using interleaved PCM.
void * FishSound
An opaque handle to a FishSound.
Definition fishsound.h:433
long fish_sound_flush(FishSound *fsound)
Flush any internally buffered data, forcing encode.
long fish_sound_get_frameno(FishSound *fsound)
Query the current frame number of a FishSound object.
Info about a particular encoder/decoder instance.
Definition fishsound.h:404
int format
FISH_SOUND_VORBIS, FISH_SOUND_SPEEX, FISH_SOUND_FLAC etc.
Definition fishsound.h:412
int samplerate
Sample rate of audio data in Hz.
Definition fishsound.h:406
int channels
Count of channels.
Definition fishsound.h:409