I need mix two wave data to one.
I add two data using float, but I got the error message" Invalid floating
point operation"
My code like this
What's wrong?
while(SoundStream2->Position < SoundStream2->Size)
{
SoundStream1->Read(&fData1, sizeof(float));
SoundStream2->Read(&fData2, sizeof(float));
if(fData1 + fData2 >= 1)
{
fMix = 1;
}
else if(fData1 + fData2 <= 0)
{
fMix = 0;
}
else
{
fMix = fData1 + fData2;
}
}
Thanks for any comments,
Best regards,
James
Jason provided me a mix wave skill, so I can mix two wave now.
Thank you very much.
Best regards,
James
if you can please post the solution.
thanks