XAudio2 & Global

For questions about using Classic.

Post » Wed Jul 06, 2011 6:00 pm

Hi.
Im using the XAudio2 Plug for my SoundFX and Music.
I made it global so i just need one Eventsheed.

The problem i have right now is that when i go to the next Layout i want the Music to start at the beginning.

Code:
Timer Equals 5000    > XAudio2: Play Music from File (Myfile.mp3)
+Trigger once

Now t i hear the music twice, like an echo!
Is there a way to get rid of old music when i finish one layout? I really dont want to code every level with the soundfx.

Thanks for your help.
B
1
G
1
Posts: 8
Reputation: 441

Post » Wed Jul 06, 2011 8:52 pm

Replace the timer with "start of layout".

I have mine set up like this

Layoutnumner = to #
     -Start of layout - play music from file

And this works fine for me.
B
9
S
2
G
4
Posts: 346
Reputation: 2,726


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 7 guests