Displaying 2 results from an estimated 2 matches for "audio_encode".
2007 Nov 13
0
problem with speex and iaxclient
...all.exe testcall.o ../../lib/.libs/libiaxclient.a -L/d/Lib/iaxclient-2.0.1/portaudio-1.9/lib.libs -L/d/Lib/iaxclient-2.0.1/speex-1.2beta1/libspeex/.libs -L/d/Lib/iaxclient-2.0.1/libtheora-1.0/lib/.libs -L/d/Lib/iaxclient-2.0.1/libogg-1.1.3/src/.libs -lwinmm -lwsock32
../../lib/.libs/libiaxclient.a(audio_encode.o):audio_encode.c:(.text+0x15a): undefined reference to `speex_preprocess_ctl'
../../lib/.libs/libiaxclient.a(audio_encode.o):audio_encode.c:(.text+0x183): undefined reference to `speex_preprocess_ctl
For the iaxclient this is how I configure is
/configure SPEEX_CFLAGS="-I/d/Lib/iaxclien...
2009 Jan 20
0
VoIP with wavefrom and speex
...he problem was the really high traffic, so I desided to use speex for compressing the data.
I'm recording with mono, 16bit/sample, 8000 samples per second. I tried to add the speex compression, but I always get a crash when I try to decode the data.
Here is my encode and decode function:
int audio_encode(char dest[],WAVEHDR *source,int srclen, int quality)
{
SpeexBits bits;
void *enc_state;
float input[160];
char output[200];
unsigned int i,n=0;
int compr_length = 0;
unsigned short length;
speex_bits_init(&bits);
enc_state = speex_encoder_init(&speex_nb_mode);
speex_encoder_ctl(e...