Lines Matching refs:audioDevice
36 static SDL_AudioDevice* audioDevice = NULL; variable
45 SDL_assert((audioDevice == NULL) || iscapture); in ANDROIDAUDIO_OpenDevice()
50 audioDevice = this; in ANDROIDAUDIO_OpenDevice()
118 SDL_assert(audioDevice == this); in ANDROIDAUDIO_CloseDevice()
119 audioDevice = NULL; in ANDROIDAUDIO_CloseDevice()
152 if(audioDevice != NULL && audioDevice->hidden != NULL) { in ANDROIDAUDIO_PauseDevices()
153 private = (struct SDL_PrivateAudioData *) audioDevice->hidden; in ANDROIDAUDIO_PauseDevices()
154 if (SDL_AtomicGet(&audioDevice->paused)) { in ANDROIDAUDIO_PauseDevices()
159 SDL_LockMutex(audioDevice->mixer_lock); in ANDROIDAUDIO_PauseDevices()
160 SDL_AtomicSet(&audioDevice->paused, 1); in ANDROIDAUDIO_PauseDevices()
184 if(audioDevice != NULL && audioDevice->hidden != NULL) { in ANDROIDAUDIO_ResumeDevices()
185 private = (struct SDL_PrivateAudioData *) audioDevice->hidden; in ANDROIDAUDIO_ResumeDevices()
187 SDL_AtomicSet(&audioDevice->paused, 0); in ANDROIDAUDIO_ResumeDevices()
189 SDL_UnlockMutex(audioDevice->mixer_lock); in ANDROIDAUDIO_ResumeDevices()