coreaudio: Replaced an int with an SDL_bool.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 02 Sep 2016 13:12:21 -0400
changeset 10307d8d0569ec151
parent 10306 3a17ad305b22
child 10308 9c5833cbeb8f
coreaudio: Replaced an int with an SDL_bool.
src/audio/coreaudio/SDL_coreaudio.c
src/audio/coreaudio/SDL_coreaudio.h
     1.1 --- a/src/audio/coreaudio/SDL_coreaudio.c	Fri Sep 02 13:11:28 2016 -0400
     1.2 +++ b/src/audio/coreaudio/SDL_coreaudio.c	Fri Sep 02 13:12:21 2016 -0400
     1.3 @@ -564,7 +564,7 @@
     1.4      result = AudioComponentInstanceNew(comp, &this->hidden->audioUnit);
     1.5      CHECK_RESULT("AudioComponentInstanceNew");
     1.6  
     1.7 -    this->hidden->audioUnitOpened = 1;
     1.8 +    this->hidden->audioUnitOpened = SDL_TRUE;
     1.9  
    1.10      if (iscapture) {  /* have to do EnableIO only for capture devices. */
    1.11          UInt32 enable = 1;
     2.1 --- a/src/audio/coreaudio/SDL_coreaudio.h	Fri Sep 02 13:11:28 2016 -0400
     2.2 +++ b/src/audio/coreaudio/SDL_coreaudio.h	Fri Sep 02 13:12:21 2016 -0400
     2.3 @@ -44,7 +44,7 @@
     2.4  struct SDL_PrivateAudioData
     2.5  {
     2.6      AudioUnit audioUnit;
     2.7 -    int audioUnitOpened;
     2.8 +    SDL_bool audioUnitOpened;
     2.9      void *buffer;
    2.10      UInt32 bufferOffset;
    2.11      UInt32 bufferSize;