Mercurial > sdl-ios-xcode
diff src/audio/macosx/SDL_coreaudio.c @ 3830:29e83f221c62 SDL-ryan-multiple-audio-device
Fixed some things to use SDL C runtime functions.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Sat, 07 Oct 2006 19:56:47 +0000 |
parents | 9d070c1a45fa |
children | 66fb40445587 |
line wrap: on
line diff
--- a/src/audio/macosx/SDL_coreaudio.c Sat Oct 07 19:53:48 2006 +0000 +++ b/src/audio/macosx/SDL_coreaudio.c Sat Oct 07 19:56:47 2006 +0000 @@ -333,7 +333,7 @@ result = AudioOutputUnitStop(this->hidden->audioUnit); /* Remove the input callback */ - memset(&callback, '\0', sizeof (AURenderCallbackStruct)); + SDL_memset(&callback, '\0', sizeof (AURenderCallbackStruct)); result = AudioUnitSetProperty(this->hidden->audioUnit, kAudioUnitProperty_SetRenderCallback, scope, bus, &callback, sizeof (callback)); @@ -425,7 +425,7 @@ return 0; } - memset(&desc, '\0', sizeof(ComponentDescription)); + SDL_memset(&desc, '\0', sizeof(ComponentDescription)); desc.componentType = kAudioUnitType_Output; desc.componentSubType = kAudioUnitSubType_HALOutput; desc.componentManufacturer = kAudioUnitManufacturer_Apple; @@ -470,7 +470,7 @@ CHECK_RESULT("AudioUnitSetProperty (kAudioUnitProperty_StreamFormat)"); /* Set the audio callback */ - memset(&callback, '\0', sizeof (AURenderCallbackStruct)); + SDL_memset(&callback, '\0', sizeof (AURenderCallbackStruct)); callback.inputProc = ((iscapture) ? inputCallback : outputCallback); callback.inputProcRefCon = this; result = AudioUnitSetProperty(this->hidden->audioUnit, @@ -514,7 +514,7 @@ SDL_memset(this->hidden, 0, (sizeof *this->hidden)); /* Setup a AudioStreamBasicDescription with the requested format */ - memset(&strdesc, '\0', sizeof(AudioStreamBasicDescription)); + SDL_memset(&strdesc, '\0', sizeof(AudioStreamBasicDescription)); strdesc.mFormatID = kAudioFormatLinearPCM; strdesc.mFormatFlags = kLinearPCMFormatFlagIsPacked; strdesc.mChannelsPerFrame = this->spec.channels;