This project has moved. For the latest updates, please go here.

Busy Device

Jan 30, 2012 at 6: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?

Coordinator
Jan 31, 2012 at 7: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 3: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.