How does WASAPI work?

Discussion

Background: I have a Schiit Modi 3 which has a max format of 32-bit, 192000 Hz.

In Windows 10 settings, the default format is set to 16-bit, 44100 Hz with both checkboxes ticked under "Exclusive Mode". (sometimes I switch to 24bit, 48000 for games)

In Foobar I use WASAPI Push (playing audio files of 48000 Hz or more I get severe audio stuttering in WASAPI Event mode, Push is fine).

The reason why my default format is that low because most of my sources outside of Foobar are in that format (games, web, etc)

So my question is: Does WASAPI completely bypass the Windows settings so it doesn't matter what I set in there? For instance, my Windows default format is 16-bit, 44.1Khz, what happens if I play a 24-bit 96Khz file in Foobar? Will it automatically set to 24b-96k despite being higher than the specified default format of 16b-44.1k?

Bonus question, why does WASAPI Event sound fine with 44.1Khz files but sounds broken with 48k and up? (Push is fine for all)

Thanks.

Posted Dec 26, 2019, 3:31 PM UTC

54
scalablecoryElex / Aeon Flow / DT1770 / DT880 / HD58x / M1060 / D50s+Atom•

WASAPI exclusive mode can bypass the system's settings and mixer to give you bit-perfect audio. It's only as good as your sound drivers, though -- some sound cards are known for always-on upsampling.

Push VS event mode don't matter for sound quality, they are just different ways of having the app stream in audio samples. Event mode gives you lower latency and resource usage, but requires your app to be more strictly designed to function properly -- stuttering indicates that Foobar is taking too long to process the event.

2
ApolloFieryOPATH-A1000Z (Modi 3 + JDS Atom)•

thank you

1
redstej•

Wasapi exclusive indeed sends directly the original sample rate at the selected bit depth, ignoring your windows settings for shared mode.

Event mode generally works better with external usb dacs. For onboard audio, regardless of using the onboard dac or sending through optical, stick with push.

There's nothing lost as far as audio fidelity goes with either mode. It's just a matter of what works best with each device.

2
ApolloFieryOPATH-A1000Z (Modi 3 + JDS Atom)•

thank you

1