Author Topic: mute sounds from all other applications  (Read 2645 times)

dskow

  • Posts: 1
mute sounds from all other applications
« on: 13 Sep '10 - 16:54 »
I am developing an audio application that requires that no other application send extra sounds to the sound card.  Currently, it works with DirectSound for mixing and playing audio.  However, other program sound are heard while my program is running.  Is there a way using DirectSound or some other technology (like ASIO), to lock the mixer to only play sounds from my application?

The solution would have to allow my program to be able to mix audio wav files.

wrkq

  • Posts: 82
Re: mute sounds from all other applications
« Reply #1 on: 13 Sep '10 - 17:43 »
To semiquote Raymond Chen... "What if two such programs would want to do this [have exclusive access, in this case] at the same time"?

Ian @ un4seen

  • Administrator
  • Posts: 20903
Re: mute sounds from all other applications
« Reply #2 on: 15 Sep '10 - 15:57 »
If you're using Windows Vista/7, then using exclusive mode WASAPI output would prevent others outputting on the same device. ASIO output will have the same effect with a lot of (but not all) soundcards.