Firstly, my precendent problem with speex and Ferdora core 2 exist not under the 3 .
Currently I seek information: I need to compress a FSOUND_SAMPLE with speex. I do not think of being able to do it directly.
How to make? A track please. thank you.
- ffomnislash asked 13 years ago
I still have small a probleme : (
srcSamp = FSOUND_Sample_Alloc(FSOUND_UNMANAGED, RECORDLEN, FSOUND_STEREO | FSOUND_16BITS , RECORDRATE, 255, 128, 255);
destSamp = FSOUND_Sample_Alloc(FSOUND_UNMANAGED, RECORDLEN, FSOUND_STEREO | FSOUND_16BITS , RECORDRATE, 255, 128, 255);
record(); //record in the srcSamp
FSOUND_Sample_Lock(srcSamp, 0, FSOUND_Sample_GetLength(srcSamp), &srcPtr1, &srcPtr2, &srcLen1, &srcLen2);
FSOUND_Sample_Unlock(srcSamp, srcPtr1, srcPtr2, srcLen1, srcLen2);
if(!FSOUND_Sample_Upload(destSamp,XXXXX, FSOUND_STEREO | FSOUND_16BITS))
play(); //play DestSamp
if XXXXX=srcPtr1 or raw_data_int there is no problem
the sound whose is play is correct
but if XXXXX=tab the sound is not correct, it is cut
but i have tested and tab[i]=raw_data_int[i]
Please login first to submit.