search for: _enc_state

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

Did you mean: enc_state
2004 Aug 06
0
Multiple Frames per Packet
...fromFloat[0]; int c = fromSize; while( c-- ) { *dst++ = (float)*src++; } // Now encode as many times as many frames as are stored speex_bits_reset( &_bits ); GASSERT( !( fromSize % _frameSize ) ); for( int frame = 0; frame < fromSize / _frameSize; ++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&l...