0
0

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.

  • You must to post comments
0
0

Ok

But i don’t know how retrieve raw data.
I don’t know how is FSOUND_SAMPLE.

  • You must to post comments
0
0

Ok, ptr1 include raw data?

  • You must to post comments
0
0

I still have small a probleme : (
The algorihme:

[code:39v8lal8]
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);

short raw_data_int;
raw_data_int=(short *)srcPtr1;
short tab[RECORDRATE
TPS_RECORD];

for(int i=0;i<(RECORDRATE*TPS_RECORD);i++)
{
tab[i]=raw_data_int[i];
}

if(!FSOUND_Sample_Upload(destSamp,XXXXX, FSOUND_STEREO | FSOUND_16BITS))
printf("%s\n", FMOD_ErrorString(FSOUND_GetError()));

play(); //play DestSamp
[/code:39v8lal8]

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]

it’s strange :(

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.