src/audio/coreaudio/SDL_coreaudio.c
changeset 6634 b14b66ed5718
parent 6628 7994e6979876
child 6885 700f1b25f77f
equal deleted inserted replaced
6633:e36b94438fcf 6634:b14b66ed5718
   338             result = AudioUnitSetProperty(this->hidden->audioUnit,
   338             result = AudioUnitSetProperty(this->hidden->audioUnit,
   339                                           kAudioUnitProperty_SetRenderCallback,
   339                                           kAudioUnitProperty_SetRenderCallback,
   340                                           scope, bus, &callback,
   340                                           scope, bus, &callback,
   341                                           sizeof(callback));
   341                                           sizeof(callback));
   342 
   342 
   343             /* !!! FIXME: how does iOS free this? */
       
   344             #if MACOSX_COREAUDIO
   343             #if MACOSX_COREAUDIO
   345             CloseComponent(this->hidden->audioUnit);
   344             CloseComponent(this->hidden->audioUnit);
       
   345             #else
       
   346             AudioComponentInstanceDispose(this->hidden->audioUnit);
   346             #endif
   347             #endif
   347 
   348 
   348             this->hidden->audioUnitOpened = 0;
   349             this->hidden->audioUnitOpened = 0;
   349         }
   350         }
   350         SDL_free(this->hidden->buffer);
   351         SDL_free(this->hidden->buffer);