Background Music and Button Sound

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ventsislav
    New Member
    • Mar 2009
    • 16

    Background Music and Button Sound

    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?
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    Have you tried putting the "button press" sound on a different thread?
    Or a new instance of the sound player?

    Comment

    • ventsislav
      New Member
      • Mar 2009
      • 16

      #3
      SoundPlayer supports only 1 instance and with threads the problem stands still. Any other ideas?

      Comment

      Working...