Set audio_driver_active to false during AUDIO_DRIVER_CTL_DESTROY

This commit is contained in:
twinaphex 2015-12-04 15:00:07 +01:00
parent 351077dc78
commit d0b4d36136

View File

@ -769,7 +769,9 @@ bool audio_driver_ctl(enum rarch_audio_ctl_state state, void *data)
case RARCH_AUDIO_CTL_INIT: case RARCH_AUDIO_CTL_INIT:
return init_audio(); return init_audio();
case RARCH_AUDIO_CTL_DESTROY: case RARCH_AUDIO_CTL_DESTROY:
current_audio = NULL; audio_driver_active = false;
audio_driver_data_own = false;
current_audio = NULL;
break; break;
case RARCH_AUDIO_CTL_DESTROY_DATA: case RARCH_AUDIO_CTL_DESTROY_DATA:
audio_driver_context_audio_data = NULL; audio_driver_context_audio_data = NULL;