0
0

How can i use FSOUND_GetSpectrum, while i am recording a sample with
FSOUND_Record_StartRecording…. ?

Or is it not possible?

I create a sample, added a DSP+FFT_Unit. Then i fetched the sample of my stream with GetSample, tried to record but GetSpectrum did not leave me some values :(

PS: my FFT Unit works great while playing streams :)

  • You must to post comments
0
0

does nobody have an idea?

here is my sourcecode:
[code:3saxz0wk]
FSOUND_Init(44100, 64, FSOUND_INIT_ACCURATEVULEVELS);
FSOUND_DSPCALLBACK callbackDSP;
FSOUND_STREAMCALLBACK callbackSTR;
int userdata1,userdata;
FSOUND_STREAM *strm;
FSOUND_DSPUNIT *dsp;
float *buffer;
strm=FSOUND_Stream_Create(callbackSTR,2000000,FSOUND_STREAMABLE | FSOUND_16BITS | FSOUND_STEREO,44100,&userdata);
dsp=FSOUND_Stream_CreateDSP(strm,callbackDSP,0,&userdata1);
dsp=FSOUND_DSP_GetFFTUnit();
FSOUND_DSP_SetActive(dsp,true);
smpl=FSOUND_Stream_GetSample(strm);
FSOUND_SetOutput(FSOUND_OUTPUT_DSOUND);
FSOUND_SetDriver(0);
FSOUND_SetMixer(FSOUND_MIXER_QUALITY_AUTODETECT);
FSOUND_Record_SetDriver(0);
recording=true;
FSOUND_Record_StartSample(smpl,false);
while (recording) {
buffer=FSOUND_DSP_GetSpectrum();
DrawBuffers(buffer);
Application->ProcessMessages();
}
[/code:3saxz0wk]

why does it not work?

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.