0
0

Hello
I finaly found out how to record data ๐Ÿ˜€ .But i’d like to do something with the data. Is there a way to get the stream in a kind of int array ?
It would be analysed with fourier so i need numbers

Thanks for helping me !!! ๐Ÿ˜‰

Koen

  • You must to post comments
0
0

As you are using a stream, you can’t get the whole sample directly, you can, however, use the callback facility to get the outputstream, and save it away from there. Note that the length of samples is stereo samples (i.e. there are twice as many shorts as the given length).

I have been using it in this way.

Phil

  • You must to post comments
0
0

Hi
ok i’m pretty new to fmod so would it be possible to explaim it a bit closer or to give me a fiece of code that does it ?

Koen

  • You must to post comments
0
0

In your main code, after your: FSOUND_Stream_OpenFile

insert:

FSOUND_DSPUNIT * DSP = FSOUND_DSP_Create( ProcBuff, 100, 0 ) ;
FSOUND_DSP_SetActive( DSP, TRUE ) ;

then add a function as follows:

void * ProcBuff( void * In, void * Out, int Length, int param )
{
int Ctr = Length ;

short * Data = ( short * ) In ;

while ( Ctr -- )
{
                   AnalyseLeft( * Data ++ ) ;
                   AnalyseRight( * Data ++ ) ;
}

return In ;

}

And that should do what you want.

Phil

  • You must to post comments
0
0

hi
me again, yes because i realy don’t understand it.
I think FSOUND_Stream_OpenFile is to open a file but i want to do it realtime (from something the user says into a microphone). Is it possible to ? (Please a full code would be very appriciated :roll: )

Koen

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.