aboutsummaryrefslogtreecommitdiff
path: root/src/aoblipplayer.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/aoblipplayer.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/aoblipplayer.cpp')
-rw-r--r--src/aoblipplayer.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/aoblipplayer.cpp b/src/aoblipplayer.cpp
index 6607d463..307a0bdd 100644
--- a/src/aoblipplayer.cpp
+++ b/src/aoblipplayer.cpp
@@ -34,12 +34,6 @@ void AOBlipPlayer::blip_tick()
HSTREAM f_stream = m_stream_list[f_cycle];
BASS_ChannelSetDevice(f_stream, BASS_GetDevice());
- int f_bass_error = BASS_ErrorGetCode();
- if (f_bass_error == BASS_ERROR_DEVICE) {
- ao_app->doBASSreset();
- BASS_ChannelSetDevice(f_stream, BASS_GetDevice());
- }
-
BASS_ChannelPlay(f_stream, false);
}