search for: gspeexdecoder

Displaying 1 result from an estimated 1 matches for "gspeexdecoder".

Did you mean: speexdecoder
2004 Aug 06
0
Multiple Frames per Packet
...ameSize; ++frame ) // Encode the frame speex_encode( _enc_state, &fromFloat[ frame * _frameSize ], &_bits); // And copy to the output buffer to.resize( speex_bits_nbytes( &_bits ) ); GASSERTRET( to.size( ) == speex_bits_write( &_bits, &to[0], to.size( ) ) ); } // decode void GSpeexDecoder::decode( const char* from, int fromSize, vector<short>& to ) { GASSERTPUB( ); GASSERTPRE( from && fromSize ); // Read the input speex_bits_read_from( &_bits, (char*)from, fromSize ); // Decode static vector<float> toFloat; int frame = 0; do { // Allocate more data, if n...