This commit is contained in:
twinaphex 2017-05-21 18:05:21 +02:00
parent fd3025ff40
commit 73cc655de7

View File

@ -956,20 +956,16 @@ static void audio_driver_mixer_remove_stream(unsigned i)
switch (audio_mixer_streams[i].state)
{
case AUDIO_STREAM_STATE_PLAYING:
audio_mixer_stop(voice);
#if 1
/* TODO - crashes at this part */
if (voice)
audio_mixer_stop(voice);
if (handle)
audio_mixer_destroy(handle);
#endif
break;
case AUDIO_STREAM_STATE_PLAYING_LOOPED:
audio_mixer_stop(voice);
#if 1
/* TODO - crashes at this part */
if (voice)
audio_mixer_stop(voice);
if (handle)
audio_mixer_destroy(handle);
#endif
break;
case AUDIO_STREAM_STATE_STOPPED:
if (handle)