Are “AUDIODEV” and “SDL_AUDIODRIVER” environment variables working on MS Windows ?
I’m trying to output audio to a specific audio device using ffplay, but i can’t find any documentation for Windows for possible values.
I’m using “SDL_AUDIODRIVER” environment var with “directsound” value.
Thanks in advance,
It works for me if I set the environment variable in my own code (before
SDL_setenv("SDL_AUDIODRIVER", "directsound", 1);
I’ve not tried doing it any other way.
This environment variable is also working for me, but how can i output audio to a specific audio device ?
Does this “specific audio device” appear as a Sound playback device in Windows’ Control Panel? If it does, you should be able to select it programmatically either using the old mixer APIs (mixerOpen, mixerSetControlDetails etc.) or newer Core Audio interfaces.