search for: decodedbytes

Displaying 3 results from an estimated 3 matches for "decodedbytes".

2009 Sep 02
3
voice sound like robot voice :)
...r *bitbuffer, uint length, byte *samplearray, float gain ) { // return if decoder is not initialized if( !pCodecDecoderState ) return 0; // return if there is not enough data to decode if ( length < encodedFrameBytes ) return 0; int buffersize = length; uint decodedbytes = 0; int pos = 0; // while( (int)buffersize - (int)encodedFrameBytes >= 0 ) { speex_bits_reset( &codecBits ); speex_bits_read_from( &codecBits, bitbuffer + pos, encodedFrameBytes ); // if( speex_decode_int( pCodecDecoderState, &code...
2009 Sep 03
1
Speex-dev Digest, Vol 64, Issue 2
...not initialized > > if( !pCodecDecoderState ) > > return 0; > > > > // return if there is not enough data to decode > > if ( length < encodedFrameBytes ) > > return 0; > > > > int buffersize = length; > > uint decodedbytes = 0; > > int pos = 0; > > // > > while( (int)buffersize - (int)encodedFrameBytes >= 0 ) > > { > > speex_bits_reset( &codecBits ); > > speex_bits_read_from( &codecBits, bitbuffer + pos, > encodedFrameBytes >...
2009 Sep 03
0
voice sound like robot voice :)
...ain ) > { > // return if decoder is not initialized > if( !pCodecDecoderState ) > return 0; > > // return if there is not enough data to decode > if ( length < encodedFrameBytes ) > return 0; > > int buffersize = length; > uint decodedbytes = 0; > int pos = 0; > // > while( (int)buffersize - (int)encodedFrameBytes >= 0 ) > { > speex_bits_reset( &codecBits ); > speex_bits_read_from( &codecBits, bitbuffer + pos, encodedFrameBytes > ); > // > if( sp...