aboutsummaryrefslogtreecommitdiff
path: root/src/aoapplication.cpp
diff options
context:
space:
mode:
authorRose Witchaven <32779090+in1tiate@users.noreply.github.com>2021-06-18 23:58:46 -0500
committerGitHub <noreply@github.com>2021-06-18 23:58:46 -0500
commit5190490a07f929aef3ee0198f5bce251ff28dbea (patch)
treee1ceff14a88e183f203009fbc549049480a61aec /src/aoapplication.cpp
parent65f812cf7331acb5d5d1f1dfbac4bc99fd0aed04 (diff)
Set BASS_CONFIG_DEV_DEFAULT to 1 to enable automatic reinitialization of the default device when it is lost (#564)
fixes #561
Diffstat (limited to 'src/aoapplication.cpp')
-rw-r--r--src/aoapplication.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/aoapplication.cpp b/src/aoapplication.cpp
index 74857593..e71f4c8a 100644
--- a/src/aoapplication.cpp
+++ b/src/aoapplication.cpp
@@ -194,6 +194,7 @@ void AOApplication::call_announce_menu(Courtroom *court)
}
// Callback for when BASS device is lost
+// Only actually used for music syncs
void CALLBACK AOApplication::BASSreset(HSTREAM handle, DWORD channel,
DWORD data, void *user)
{
@@ -213,6 +214,7 @@ void AOApplication::doBASSreset()
void AOApplication::initBASS()
{
+ BASS_SetConfig(BASS_CONFIG_DEV_DEFAULT, 1);
BASS_Free();
// Change the default audio output device to be the one the user has given
// in his config.ini file for now.