Skip to content
Permalink
Browse files
AudioSDL -> SDL2: Fix a crash from calling a SDL1 function instead of
SDL2's.
  • Loading branch information
Reflexe authored and lukas-w committed Jul 7, 2018
1 parent ec28a65 commit ff8de2d
Showing 1 changed file with 4 additions and 0 deletions.
@@ -159,7 +159,11 @@ void AudioSdl::startProcessing()

void AudioSdl::stopProcessing()
{
#ifdef LMMS_HAVE_SDL2
if( SDL_GetAudioDeviceStatus(m_outputDevice) == SDL_AUDIO_PLAYING )
#else
if( SDL_GetAudioStatus() == SDL_AUDIO_PLAYING )
#endif
{
#ifdef LMMS_HAVE_SDL2
SDL_LockAudioDevice (m_inputDevice);

0 comments on commit ff8de2d

Please sign in to comment.