search for: floatdata

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

Did you mean: float_data
2004 Aug 06
1
openh323 conflict; can speex_encode take short?
openh323 speexcodec.cxx has: BOOL SpeexCodec::EncodeFrame(BYTE * buffer, unsigned & length) { // convert PCM to float float floatData[SAMPLES_PER_FRAME]; PINDEX i; for (i = 0; i < SAMPLES_PER_FRAME; i++) floatData[i] = sampleBuffer[i]; // encode PCM data in sampleBuffer to buffer speex_bits_reset(bits); speex_encode(coder_state, floatData, bits); ................................. which does not compile on gcc-3...
2005 Jan 04
1
Conversion problem in encoding and decoding
Hi, I am new to this newsgroup. I have a problem using the Speex library. I have recorded sound data using a character buffer like char recMessg[BUFFERSIZE]. I have problem converting this to the float array for encoding. Also help me in converting the decoded information in float array back to character array. Can anybody give me function codes for this conversion. Thanks in
2005 Jan 04
0
Conversion problem in encoding and decoding
> short temp_short; > float temp_float; > float floatData[number_of_sample]; > > for (int i=0; i < number_of_sample; i++) > { > memcpy(&temp_short, &src[i*2], 2); > temp_float = temp_short; > floatData[i] = temp_float; > } > > yueweng > Thanks for the encoding code can yu plz send me the decoding code for c...