Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Need help Wave data mix

0 views
Skip to first unread message

James5950

unread,
Mar 10, 2008, 12:34:14 AM3/10/08
to
Hello All,

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

James5950

unread,
Mar 12, 2008, 4:16:29 AM3/12/08
to
Dear All,

Jason provided me a mix wave skill, so I can mix two wave now.

Thank you very much.
Best regards,
James

Jeff Kish

unread,
May 31, 2008, 9:36:51 AM5/31/08
to
On Wed, 12 Mar 2008 16:16:29 +0800, "James5950" <Ja...@1come.com.tw>
wrote:

if you can please post the solution.
thanks

0 new messages