0
0

Hello everyone,

I try to acquire sound on microphone on real time, so last week I try and it works but I have not save my work and I try today and I can’t… I don’t know why. I just have some 0.

Here’s my code in C.

[code:ob8xvnxr]void * F_CALLBACKAPI OutPut_Callback(void originalbuffer, void *newbuffer, int length, void *param){
int Count;
short
Buffer;
Buffer= (short )newbuffer;
static short TempBufferL,TempBufferR;
for(Count=0; Count<=length; Count++)
{
TempBufferL=
(Buffer++);
TempBufferR=*(Buffer++);
cout<<Count<<" : "<<(int)TempBufferL<<" ## "<<(int)TempBufferR<<endl;
//send(session,TempBufferL,0,160);
}
return newbuffer;
}
[/code:ob8xvnxr]
[code:ob8xvnxr]FSOUND_DSPUNIT *myDSP = FSOUND_DSP_Create(&OutPut_Callback,FSOUND_DSP_DEFAULTPRIORITY_USER+100,session);
FSOUND_DSP_SetActive(myDSP, TRUE);[/code:ob8xvnxr]
I enter this callback well but I have just some 0…

I always have 0 and I want something like 451 -157 3135… :)

What should I do, what’s the mistake ? Please Help :)

thanks all,

  • You must to post comments
0
0

Hum, last week it works yes, but I lost my code. So I tried to do the same… I think it’s the same but it doesn”t work now… I have not change the sound on my computer… :(

I see in the sound panel that the microphone is on when I start my exe file, I tried with the windows recorder and it’s ok…

And then I don”t use FSOUND_HW2D… :(

any ideas ? Is my code ok ? Is there something wrong ?

thanks brett !

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.