mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp.git
synced 2026-04-29 21:51:49 +00:00
Force audio driver selection to wasapi on Windows to prevent audio issue
This commit is contained in:
parent
7df243eaac
commit
cb05ed59f2
1 changed files with 4 additions and 0 deletions
|
|
@ -323,6 +323,10 @@ int main(int argc, char** argv) {
|
|||
SetCurrentConsoleFontEx(GetStdHandle(STD_OUTPUT_HANDLE), FALSE, &cfi);
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
// Force wasapi on Windows, as there seems to be some issue with sample queueing with directsound currently.
|
||||
SDL_setenv("SDL_AUDIODRIVER", "wasapi", true);
|
||||
#endif
|
||||
//printf("Current dir: %ls\n", std::filesystem::current_path().c_str());
|
||||
|
||||
// Initialize SDL audio and set the output frequency.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue