How does WASAPI work?
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
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.
thank you