By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,079 Members | 1,788 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,079 IT Pros & Developers. It's quick & easy.

Background Music and Button Sound

P: 16
I want to have a background music to my simple app and a buton which plays another sound, but when I press the button the sound from it interrupts the background sound. I tried with SoundPlayer and the native PlaySound function but the results were the same. Any ideas how to have a background music and a button sound without using DirectSound? Can you provide me some snippets?
Jun 10 '09 #1
Share this Question
Share on Google+
2 Replies

Expert 2.5K+
P: 3,525
Have you tried putting the "button press" sound on a different thread?
Or a new instance of the sound player?
Jun 10 '09 #2

P: 16
SoundPlayer supports only 1 instance and with threads the problem stands still. Any other ideas?
Jun 10 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.