Displaying 3 results from an estimated 3 matches for "setsamplerate".
2009 Sep 02
3
voice sound like robot voice :)
...troy( pCodecEncoderState );
speex_bits_destroy( &codecBits );
pCodecEncoderState = NULL;
}
if ( pCodecDecoderState )
{
speex_decoder_destroy( pCodecDecoderState );
speex_bits_destroy( &codecBits );
pCodecDecoderState = NULL;
}
}
void TVoiceCodec::setSampleRate( int samplerate )
{
sampleRate = samplerate;
// determine the mode
int modeID = -1;
// speex has limits [6000 - 48000]
if ( sampleRate > 48000 )
return;
if ( sampleRate > 25000 )
modeID = SPEEX_MODEID_UWB;
else if ( sampleRate > 12500 )
modeID = SP...
2009 Sep 03
1
Speex-dev Digest, Vol 64, Issue 2
...}
> >
> > if ( pCodecDecoderState )
> > {
> > speex_decoder_destroy( pCodecDecoderState );
> > speex_bits_destroy( &codecBits );
> > pCodecDecoderState = NULL;
> > }
> > }
> >
> >
> > void TVoiceCodec::setSampleRate( int samplerate )
> > {
> > sampleRate = samplerate;
> >
> > // determine the mode
> > int modeID = -1;
> >
> > // speex has limits [6000 - 48000]
> > if ( sampleRate > 48000 )
> > return;
> >
> > if ( samp...
2009 Sep 03
0
voice sound like robot voice :)
...ecBits );
> pCodecEncoderState = NULL;
> }
>
> if ( pCodecDecoderState )
> {
> speex_decoder_destroy( pCodecDecoderState );
> speex_bits_destroy( &codecBits );
> pCodecDecoderState = NULL;
> }
> }
>
>
> void TVoiceCodec::setSampleRate( int samplerate )
> {
> sampleRate = samplerate;
>
> // determine the mode
> int modeID = -1;
>
> // speex has limits [6000 - 48000]
> if ( sampleRate > 48000 )
> return;
>
> if ( sampleRate > 25000 )
> modeID = SPEEX_MODEID_UW...