From fda7a3d158c30c8327df9bd09ac8581291201e8d Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 2 Sep 2016 13:12:21 -0400 Subject: [PATCH] coreaudio: Replaced an int with an SDL_bool. --- src/audio/coreaudio/SDL_coreaudio.c | 2 +- src/audio/coreaudio/SDL_coreaudio.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/audio/coreaudio/SDL_coreaudio.c b/src/audio/coreaudio/SDL_coreaudio.c index 4819fcb32..05754ea0a 100644 --- a/src/audio/coreaudio/SDL_coreaudio.c +++ b/src/audio/coreaudio/SDL_coreaudio.c @@ -564,7 +564,7 @@ prepare_audiounit(_THIS, void *handle, int iscapture, result = AudioComponentInstanceNew(comp, &this->hidden->audioUnit); CHECK_RESULT("AudioComponentInstanceNew"); - this->hidden->audioUnitOpened = 1; + this->hidden->audioUnitOpened = SDL_TRUE; if (iscapture) { /* have to do EnableIO only for capture devices. */ UInt32 enable = 1; diff --git a/src/audio/coreaudio/SDL_coreaudio.h b/src/audio/coreaudio/SDL_coreaudio.h index 329073233..4b05798e8 100644 --- a/src/audio/coreaudio/SDL_coreaudio.h +++ b/src/audio/coreaudio/SDL_coreaudio.h @@ -44,7 +44,7 @@ struct SDL_PrivateAudioData { AudioUnit audioUnit; - int audioUnitOpened; + SDL_bool audioUnitOpened; void *buffer; UInt32 bufferOffset; UInt32 bufferSize;