Displaying 1 result from an estimated 1 matches for "coder_st".
Did you mean:
coder's
2004 Aug 06
1
openh323 conflict; can speex_encode take short?
...::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.3.3:
peexcodec.cxx: In member function `virtual BOOL
SpeexCodec::EncodeFrame(BYTE*,
unsigned int&)':
speexcodec.cxx:410: error: cannot convert `float*' to `short int*' for
argument
`2...