🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.multimedia
3 messages
3 total messages Started by James5950 Mon, 10 Mar 2008 04:34
Need help Wave data mix
#195
Author: James5950
Date: Mon, 10 Mar 2008 04:34
30 lines
1610 bytes
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 
Re: Need help Wave data mix
#196
Author: James5950
Date: Wed, 12 Mar 2008 08:16
7 lines
1261 bytes
Dear All,

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

Thank you very much.
Best regards,
James
Re: Need help Wave data mix
#202
Author: Jeff Kish
Date: Sat, 31 May 2008 13:36
12 lines
1138 bytes
On Wed, 12 Mar 2008 16:16:29 +0800, "James5950" <James@1come.com.tw>
wrote:

>Dear All,
>
>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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads