Jump to content
Sign in to follow this  
foster74

Can I play 2 sounds files at once?

Recommended Posts

foster74

I want to have a midi as background music, and then have a wav play as a sound effect without interrupting the midi, is there anyway to do this?

Share this post


Link to post
Share on other sites
Nahuel

I don't really know about midis, but this plays both files at the same time:

#include <sound.au3>
_SoundPlay(@WindowsDir & "\media\tada.wav")
_SoundPlay(@WindowsDir & "\media\notify.wav",1)

give it a try.

Share this post


Link to post
Share on other sites
foster74

It worked great! Thank you very much! I was thinking that SoundPlay was the same as _SoundPlay, but they are not, thanks again. :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.