WASAPI blocks sleep

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: WASAPI blocks sleep

Re: WASAPI blocks sleep

by Barleyman » Wed May 23, 2012 8:13 am

jiri wrote:I don't think that this could be fixed. We certainly could try to close the audio device during pause, but I suspect that it would cause more bad than good, since users have various devices that might depend on the current behavior.

Jiri
Is it putting out silent audio bitstream when paused?

Anyways, as I pointed out, DirectX closes the audio stream when paused so therefore there's no problem with suspend.

Re: WASAPI blocks sleep

by jiri » Wed May 23, 2012 7:13 am

I don't think that this could be fixed. We certainly could try to close the audio device during pause, but I suspect that it would cause more bad than good, since users have various devices that might depend on the current behavior.

Jiri

Re: WASAPI blocks sleep

by Barleyman » Wed May 23, 2012 3:14 am

Bug or unexpected undesirable behavior, take your pick..

Re: WASAPI blocks sleep

by nohitter151 » Tue May 22, 2012 3:43 pm

I don't think this is a bug, especially as it works when you've stopped playback.

WASAPI blocks sleep

by Barleyman » Mon May 21, 2012 4:58 pm

At least on my rig it does.

Setup: Win7 x64, Xonar D1, Monkey 4.03.1476

While WASAPI is playing, computer won't go to sleep/suspend. This is reasonable behavior. However, when you PAUSE a song, computer still won't go to sleep. If you stop the playback, then sleep is available. Problem doesn't appear with DirectX output. At least not in the easily repeatable fashion it does with WASAPI.

It's easy to run into this (at least for me) as the keyboard does not have "stop" button, just play/pause button. Then you get an inflated electric bill..

Technically speaking:

Code: Select all

C:\Windows\system32>powercfg -requests
DISPLAY:
None.

SYSTEM:
[DRIVER] ASUS Xonar D1 Audio Device (PCI\VEN_13F6&DEV_8788&SUBSYS_834F1043&REV_00\5&d93df5b&0&0800E6)
An audio stream is currently in use.

AWAYMODE:
None.

Top