search for: _framesize

Displaying 4 results from an estimated 4 matches for "_framesize".

Did you mean: framesize
2004 Aug 06
0
Multiple Frames per Packet
...ta static vector<float> fromFloat; fromFloat.resize( fromSize ); const short* src = from; float* dst = &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( &_bit...
2016 Nov 10
1
Error running opus encoder/decoder under PIC32
...= opus_encoder_ctl(_encoder, OPUS_SET_BITRATE(64000)); _decoder = opus_decoder_create(48000, 2, &error); The variable error is always set to OPUS_OK. The encoding and decoding procedure is as follows: bytesEncoded = opus_encode(_encoder, _encoderBuffer, _frameSize, codedBuffer, sizeof(codedBuffer)); sampsDecoded = opus_decode(_decoder, codedBuffer, bytesEncoded, decoderBuffer, _frameSize, false); In this case, _frameSize is 960 (20 ms), bytesEncoded returns 0xa1 and sampsDecoded returns 960; codedBuffer is large enough to store the encod...
2007 Oct 10
0
encode return 0
..., everything seems to works right, when I call the speex_encode_int function it always return 0, any help would be appreciated. Here?s the sequence of calls: //Initialization _Mode = speex_lib_get_mode(0); _State = speex_encoder_init(_Mode); fixed (int* __FrameSize = &_FrameSize, __Complexity = &_Complexity, __SamplingRate = &_SamplingRate) { speex_encoder_ctl(_State, 3 /*SPEEX_GET_FRAME_SIZE*/, __FrameSize); speex_encoder_ctl(_State, 16 /*SPEEX_SET_COMPLEXITY*/, __Complexity); speex_encoder_ctl(_State, 24 /*SPEEX...
2013 Jul 18
2
Help building OPUS library using FIXED_POINT option
...id-ndk-r8e/toolchains/arm-linux-androideabi-4.6/preb uilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-andr oideabi/bin/ld.exe: ./obj/local/armeabi/lib0.a(analysis.o): in function run_anal ysis:jni/src/libopus/src/analysis.c:636: error: undefined reference to 'optimize _framesize' [exec] C:/android/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/preb uilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-andr oideabi/bin/ld.exe: ./obj/local/armeabi/lib0.a(mlp.o): in function tansig_approx .part.0:jni/src/libopus/src/mlp.c:60: error: undefi...