audio: Commented out a currently-incorrect assert.

Fixes #8326.
This commit is contained in:
Ryan C. Gordon 2023-10-02 19:41:29 -04:00
parent 3abb464f10
commit de5068f4e4
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 1 additions and 1 deletions

View File

@ -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);