This project has moved and is read-only. For the latest updates, please go here.

Busy Device

Jan 30, 2012 at 7:29 PM

I apologize if this turns out to be a repeat question, but I tried doing a search for this and couldn't find an answer.

I am currently using DirectSoundOut to play sounds from specific devices based on a user's selection. A concern came up that I'm not sure how to address.  Is there a way to check whether a specific output device is already playing something?

Jan 31, 2012 at 8:35 PM

You can have many instances of DirectSoundOut playing sound simultaneously in your own application, and Windows will mix it in with any sounds being played by other applications. You can write your own code to keep track of what you are playing, but there is no easy way to find out if other applications are playing something (although I think some of the WASAPI APIs can do this).

Feb 1, 2012 at 4:42 PM

Thank you for the reply.  You are correct in your assessment that I was hoping to find out whether other applications are playing something. I shall have to delve into those WASAPI APIs to see what I can find.


Thanks again.