Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
No audio self compiled Windows #692
I'd have put this bug report in mupen64plus-audio-sdl if it weren't for the fact that you can't post bug reports there for some reason.
I don't know why, but I'm not getting any audio when using a MSYS2/MinGW-W64 self compiled dll of mupen64plus-audio-sdl. It compiles just fine. The only thing i'm sure of is that the "Obtained audio format/frequency differs from requested."
It's not a bug in SDL, it is an issue with mupen64plus-audio-sdl
SDL 2.0.6 changed the audio backend on Windows to WASAPI, with that change, the audio format is forced to 32bit floating point samples. Audio-sdl only outputs 16 bit integer samples currently, so it needs to convert the samples to the proper format before feeding them to SDL
As a workaround you can call the
This forces SDL to use the specified audio settings (and deals with the conversion specifics internally), as described in the SDL wiki -> https://wiki.libsdl.org/SDL_OpenAudio