How to tell what is using an audio stream?

14

2

I've noticed that my computer doesn't want to stay in standby or go to standby after x minutes (as set in my Power Options). Running powercfg -requests tells me that my audio driver is keeping my computer awake... "An audio stream is currently in use"... similar to what was seen in question/answers to uTorrent prevents computer from entering sleep state. Except I'm not running uTorrent, nor any torrenting application.

I know I can (and have, for now) set an override with powercfg -requestsoverride "<audio driver name>" system, but I'm more curious about what is keeping an open audio stream. The only applications I have left open while away are Steam and Trillian. My only guess is that Steam is the culprit because it has an entry in the Volume Mixer, but I can imagine that any application that could play audio at any time might have an entry in there, even if it's not currently using an audio stream.

Is there a way to tell which application(s) is currently using an audio stream (and thus keeping my computer awake)? If it is any help, my hardware/driver is Realtek High Definition Audio.

Additionally, and this is probably asking too much, is there a way to keep known naughty applications from keeping the computer awake? For example, as seen in the comments below, Steam was the culprit, but it shouldn't be hogging an audio stream the whole time just for the chance that I get a message. (I'm assuming this is a bug in the latest version of Steam since this was not an issue in the past.) But I don't like having override set for all audio because, e.g., I could have music playing in VLC or something in which case I don't want my computer to standby.

jpatton

Posted 2013-07-31T22:42:15.693

Reputation: 164

@jpatton I have the same problem. My Chrome although I am not hearing music is using the realtek audio and that is preventing the pc from going to sleep. – Devid – 2014-08-28T20:54:36.450

1Why not just disable one of them and see if it stops? If not, move on to the next. If there's only a couple suspects it shouldn't take long. – Ƭᴇcʜιᴇ007 – 2013-07-31T22:46:39.723

Good point. I killed Steam and the entry in powercfg disappeared. Still curious if there's a "non-lethal" way to tell. Also, would rather not have to close Steam every time I get up from my computer, but also would not like my computer to standby while playing music, e.g., via VLC. I'll add to my question... – jpatton – 2013-07-31T22:49:21.663

+1 quitting the applications that have entries in the volume mixer seems to get rid of the request, but restarting the applications doesn't necessarily recreate it. FWIW, Steam seems to be pretty well behaved and will only create a request if there is sound playing. My money would be on Flash player, since that appears to persist even if there's no flash elements open anywhere. Maybe try killing Flash after a certain period of idleness? – toryan – 2013-07-31T23:20:53.373

2In this case, it was definitely Steam. I didn't have browser windows open other than SU's, and quitting Steam made both the mixer and powercfg -request entries go away. Starting Steam brings them back, even if all Steam windows are closed. – jpatton – 2013-08-01T01:12:37.767

Answers

5

You can use Process Explorer to find out what programs are using particular handles and DLLs. Try to look for audioses.dll.

Vlastimil Ovčáčík

Posted 2013-07-31T22:42:15.693

Reputation: 1 835

A lot of applications have this DLL loaded including multiple system processes so this is not terribly useful. – user169771 – 2015-12-12T06:51:08.047

Quit the applications one by one and see which one was holding it open. For me, it was Origin, even though I had a list of 10 apps (Chrome, Steam, etc.) that had the driver in use. – AutomationNation – 2016-11-13T23:00:42.973

1

Another culprit of keeping Windows from entering standby mode due to "An audio stream is currently in use":

The input signal from your microphone is forwarded to your speakers.

Solutions:

  1. Disconnect microphone
  2. Disable listen mode

Jack Miller

Posted 2013-07-31T22:42:15.693

Reputation: 156