mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-27 16:48:54 +00:00
@@ -1264,7 +1264,7 @@ int SDL_GetAudioDeviceFormat(SDL_AudioDeviceID devid, SDL_AudioSpec *spec, int *
|
||||
// this expects the device lock to be held. !!! FIXME: no it doesn't...?
|
||||
static void ClosePhysicalAudioDevice(SDL_AudioDevice *device)
|
||||
{
|
||||
SDL_assert(current_audio.impl.ProvidesOwnCallbackThread || ((device->thread == NULL) == (SDL_AtomicGet(&device->thread_alive) == 0)));
|
||||
//SDL_assert(current_audio.impl.ProvidesOwnCallbackThread || ((device->thread == NULL) == (SDL_AtomicGet(&device->thread_alive) == 0)));
|
||||
|
||||
if (SDL_AtomicGet(&device->thread_alive)) {
|
||||
SDL_AtomicSet(&device->shutdown, 1);
|
||||
|
||||
Reference in New Issue
Block a user