HydrogenAudio

Hosted Forums => foobar2000 => Support - (fb2k) => Topic started by: trdlo147258 on 2012-12-31 14:34:19

Title: WASAPI - no sound in another program after pause
Post by: trdlo147258 on 2012-12-31 14:34:19
Hi,

This behavior (http://www.head-fi.org/t/497641/confusion-with-asio-wasapi-output/15#post_6717658) doesn´t work for me. I don´t hear any sound in any program when a music in foobar2000 is paused but if the music is stopped then the sound works.

I am using foobar2000 v1.2 and WASAPI output support 3.1.
Title: WASAPI - no sound in another program after pause
Post by: Rollin on 2012-12-31 15:01:44
Quote
WASAPI output support
Adds Windows Audio Session API exclusive mode output support, allowing bit-exact output and muting all other sounds. Windows Vista SP1 or newer required.
Title: WASAPI - no sound in another program after pause
Post by: trdlo147258 on 2012-12-31 15:23:48
Quote
WASAPI output support
Adds Windows Audio Session API exclusive mode output support, allowing bit-exact output and muting all other sounds. Windows Vista SP1 or newer required.



Yeah, I know but I am still not sure if muting all other sounds when playback is paused is intentional. If yes, it is definitely uncomfortable.
Title: WASAPI - no sound in another program after pause
Post by: Kohlrabi on 2012-12-31 15:39:01
Is there a reason you need to use WASAPI output, or, IOW,  is there a reason not to use DirectSound output, which can mix multiple audio sources?
Title: WASAPI - no sound in another program after pause
Post by: trdlo147258 on 2012-12-31 16:13:04
Is there a reason you need to use WASAPI output, or, IOW,  is there a reason not to use DirectSound output, which can mix multiple audio sources?


Sure there is! No more discussion on "Why I am not using DirectSound output" topic, please!
Title: WASAPI - no sound in another program after pause
Post by: kode54 on 2013-01-01 00:19:31
Freeing the device while paused would require the external WASAPI process to shut down output completely, then reopen it and refill the output buffer whenever pausing and unpausing. That is sure to cause other unwanted glitches.
Title: WASAPI - no sound in another program after pause
Post by: trdlo147258 on 2013-01-01 19:05:38
Freeing the device while paused would require the external WASAPI process to shut down output completely, then reopen it and refill the output buffer whenever pausing and unpausing. That is sure to cause other unwanted glitches.


OK, now I am sure it´s not a bug, it´s a feature. Thank you, kode54! Maybe this one behavior could be added as optional feature. That could also easier fix unwanted glitches than this:

Quote
Stuttering
Some devices (most commonly USB DAC's) will start stuttering during playback when using WASAPI. This is due to a bug in Microsoft's WASAPI system itself, or in the stock Microsoft driver, where the circling buffers get out of order. Stopping and restarting playback is required to reset the stuttering.