Skip to content
Permalink
Browse files

coreaudio: Replaced an int with an SDL_bool.

  • Loading branch information
icculus committed Sep 2, 2016
1 parent f9d9708 commit fda7a3d158c30c8327df9bd09ac8581291201e8d
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/audio/coreaudio/SDL_coreaudio.c
  2. +1 −1 src/audio/coreaudio/SDL_coreaudio.h
@@ -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;
@@ -44,7 +44,7 @@
struct SDL_PrivateAudioData
{
AudioUnit audioUnit;
int audioUnitOpened;
SDL_bool audioUnitOpened;
void *buffer;
UInt32 bufferOffset;
UInt32 bufferSize;

0 comments on commit fda7a3d

Please sign in to comment.