sipxmedialib  Version 3.3
Functions
plgspeex.h File Reference
#include <mp/codecs/PlgDefsV1.h>
Include dependency graph for plgspeex.h:

Go to the source code of this file.

Functions

void * universal_speex_init (const char *fmt, int isDecoder, int samplerate, struct MppCodecFmtpInfoV1_2 *pCodecInfo)
 
int universal_speex_free (void *handle, int isDecoder)
 
int universal_speex_get_packet_samples (void *handle, const uint8_t *pPacketData, unsigned packetSize, unsigned *pNumSamples, const struct RtpHeader *pRtpHeader)
 
int universal_speex_decode (void *handle, const void *pCodedData, unsigned cbCodedPacketSize, void *pAudioBuffer, unsigned cbBufferSize, unsigned *pcbDecodedSize, const struct RtpHeader *pRtpHeader)
 
int universal_speex_encode (void *handle, const void *pAudioBuffer, unsigned cbAudioSamples, int *rSamplesConsumed, void *pCodedData, unsigned cbMaxCodedData, int *pcbCodedSize, unsigned *pbSendNow)
 

Function Documentation

void* universal_speex_init ( const char *  fmt,
int  isDecoder,
int  samplerate,
struct MppCodecFmtpInfoV1_2 pCodecInfo 
)
int universal_speex_free ( void *  handle,
int  isDecoder 
)
int universal_speex_get_packet_samples ( void *  handle,
const uint8_t *  pPacketData,
unsigned  packetSize,
unsigned *  pNumSamples,
const struct RtpHeader pRtpHeader 
)
int universal_speex_decode ( void *  handle,
const void *  pCodedData,
unsigned  cbCodedPacketSize,
void *  pAudioBuffer,
unsigned  cbBufferSize,
unsigned *  pcbDecodedSize,
const struct RtpHeader pRtpHeader 
)
int universal_speex_encode ( void *  handle,
const void *  pAudioBuffer,
unsigned  cbAudioSamples,
int *  rSamplesConsumed,
void *  pCodedData,
unsigned  cbMaxCodedData,
int *  pcbCodedSize,
unsigned *  pbSendNow 
)