From 5190490a07f929aef3ee0198f5bce251ff28dbea Mon Sep 17 00:00:00 2001 From: Rose Witchaven <32779090+in1tiate@users.noreply.github.com> Date: Fri, 18 Jun 2021 23:58:46 -0500 Subject: Set BASS_CONFIG_DEV_DEFAULT to 1 to enable automatic reinitialization of the default device when it is lost (#564) fixes #561 --- src/aoblipplayer.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/aoblipplayer.cpp') diff --git a/src/aoblipplayer.cpp b/src/aoblipplayer.cpp index 6607d46..307a0bd 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); } -- cgit