From 86ee383fdd0a643e9c4edd6789d4a52290a470ab Mon Sep 17 00:00:00 2001 From: Per Nyblom Date: Tue, 25 May 2021 09:59:45 +0200 Subject: [PATCH] Removed duplicate SDL_AtomicGet() --- src/audio/coreaudio/SDL_coreaudio.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/coreaudio/SDL_coreaudio.m b/src/audio/coreaudio/SDL_coreaudio.m index f84a1c558..8dbd1dd3d 100644 --- a/src/audio/coreaudio/SDL_coreaudio.m +++ b/src/audio/coreaudio/SDL_coreaudio.m @@ -601,7 +601,7 @@ inputCallback(void *inUserData, AudioQueueRef inAQ, AudioQueueBufferRef inBuffer } /* ignore unless we're active. */ - if (!SDL_AtomicGet(&this->paused) && SDL_AtomicGet(&this->enabled) && !SDL_AtomicGet(&this->paused)) { + if (!SDL_AtomicGet(&this->paused) && SDL_AtomicGet(&this->enabled)) { const Uint8 *ptr = (const Uint8 *) inBuffer->mAudioData; UInt32 remaining = inBuffer->mAudioDataByteSize; while (remaining > 0) {