Engine/lib/sdl/src/audio/android/SDL_androidaudio.c
/* Pause (block) all non already paused audio devices by taking their mixer lock */
Pause (block) all non already paused audio devices by taking their mixer lock
Pause ( block ) all non already paused audio devices by taking their mixer lock
void AndroidAUD_PauseDevices(void)
{
    struct SDL_PrivateAudioData *private;
    if(audioDevice != NULL && audioDevice->hidden != NULL) {
        private = (struct SDL_PrivateAudioData *) audioDevice->hidden;
        if (audioDevice->paused) {
            private->resume = SDL_FALSE;
        }
        else {
            SDL_LockMutex(audioDevice->mixer_lock);
            audioDevice->paused = SDL_TRUE;
            private->resume = SDL_TRUE;
        }
    }
}
void AndroidAUD_PauseDevices ( void ) { struct SDL_PrivateAudioData * private ; if ( audioDevice != NULL && audioDevice -> hidden != NULL ) { private = ( struct SDL_PrivateAudioData * ) audioDevice -> hidden ; if ( audioDevice -> paused ) { private -> resume = SDL_FALSE ; } else { SDL_LockMutex ( audioDevice -> mixer_lock ) ; audioDevice -> paused = SDL_TRUE ; private -> resume = SDL_TRUE ; } } }
Pause (block) all non already paused audio devices by taking their mixer lock
Pause ( block ) all non already paused audio devices by taking their mixer lock
/* TODO: Handle multiple devices? */ /* The device is already paused, leave it alone */