Displaying 4 results from an estimated 4 matches for "peex_encoder_ctl".
Did you mean:
speex_encoder_ctl
2004 Aug 06
0
libspeex crash with RC3
...this or am
I on crack and should look for a bug elsewhere?
// Initialize speex encoder.
SpeexEncoderBits = new SpeexBits;
SpeexEncoderState = speex_encoder_init(&speex_nb_mode);
INT FrameSize,
SamplingRate = 8000, // 8000 Hz
BitRate = 4000; // 4kbps == 10 bytes per 20 ms
peex_encoder_ctl( SpeexEncoderState, SPEEX_SET_BITRATE , &BitRate );
speex_encoder_ctl( SpeexEncoderState, SPEEX_SET_SAMPLING_RATE ,
&SamplingRate );
speex_encoder_ctl( SpeexEncoderState, SPEEX_GET_FRAME_SIZE , &FrameSize );
FLOAT Src[VOICE_FRAME_SIZE];
appMemzero( Src, sizeof(Src) );
char Dest[VOI...
2004 Aug 06
2
Bitrate in encoder
Hi,
I'm using the latest version of libspeex (checked out today) and have
some problems with checking the target bitrate in the encoder. Calling:
peex_encoder_ctl(globals->enc_state,SPEEX_GET_BITRATE, &bitrate);
Seems to set bitrate to 24600 no matter what the qualitysetting is.. The
functions used previous to this call is:
peex_bits_init(&globals->bits);
globals->enc_state = speex_encoder_init(&speex_nb_mode);
speex_encoder_ctl(global...
2004 Aug 06
3
libspeex crash with RC3
I tried to compress 160 samples of random garbage (range 0-500.f) at 4kbps
and got a crash in nb_encode -> forced_pitch_quant because start
was -858993460 (== ol_pitch).
-- Daniel, Epic Games Inc.
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org'
2004 Aug 06
3
Error in my code
...buffer size of '30720' was compressed to '4320'
<p>The compiler returns me to the following line:
speex_encode(enc_state, (float*)buffer, &bits);
<p>This is how speex was initialised:
speex_bits_init(&bits);
enc_state = speex_encoder_init(&speex_uwb_mode);
peex_encoder_ctl(enc_state,SPEEX_GET_FRAME_SIZE,&frameSize);
long x = 32000;
speex_encoder_ctl(enc_state,SPEEX_SET_SAMPLING_RATE,&x);
<p>What am I doing wrong?
Compiler: Borland C++ Builder 6 Professional.
OS: Windows XP
Speex version: 1.01
Sound library: BASS 2.0
Thanks in advance for any help.
Wi...