diff options
author | rubidium <rubidium@openttd.org> | 2006-12-26 22:04:53 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2006-12-26 22:04:53 +0000 |
commit | da4b1a7718846c1ef9d0c52132e5190b493a7573 (patch) | |
tree | 88284af8cd85458cf0057e45cff6cfd35008302d /sound | |
parent | 64a67bb63bc047107e38a2990e782ae449e2322a (diff) | |
download | openttd-da4b1a7718846c1ef9d0c52132e5190b493a7573.tar.xz |
(svn r7569) -Fix (r7565): cocoa files were (somehow) forgotten.
-Change: messages about failures is cocoa should be debug level 0 and show what went wrong. " failed with message X" isn't really descriptive.
-Change: remove unneeded level 1 debug messages for entering some cocoa functions.
Diffstat (limited to 'sound')
-rw-r--r-- | sound/cocoa_s.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sound/cocoa_s.c b/sound/cocoa_s.c index b2f2b1f1e..3b758ad71 100644 --- a/sound/cocoa_s.c +++ b/sound/cocoa_s.c @@ -55,8 +55,6 @@ static const char *CocoaSoundStart(const char * const *parm) struct AudioUnitInputCallback callback; AudioStreamBasicDescription requestedDesc; - DEBUG(driver, 1)("cocoa_s: CocoaSoundStart"); - /* Setup a AudioStreamBasicDescription with the requested format */ requestedDesc.mFormatID = kAudioFormatLinearPCM; requestedDesc.mFormatFlags = kLinearPCMFormatFlagIsPacked; @@ -122,11 +120,9 @@ static void CocoaSoundStop(void) { struct AudioUnitInputCallback callback; - DEBUG(driver, 1)("cocoa_s: CocoaSoundStop"); - /* stop processing the audio unit */ if (AudioOutputUnitStop(_outputAudioUnit) != noErr) { - DEBUG(driver, 1)("cocoa_s: Core_CloseAudio: AudioOutputUnitStop failed"); + DEBUG(driver, 0, "cocoa_s: Core_CloseAudio: AudioOutputUnitStop failed"); return; } @@ -134,12 +130,12 @@ static void CocoaSoundStop(void) callback.inputProc = 0; callback.inputProcRefCon = 0; if (AudioUnitSetProperty(_outputAudioUnit, kAudioUnitProperty_SetInputCallback, kAudioUnitScope_Input, 0, &callback, sizeof(callback)) != noErr) { - DEBUG(driver, 1)("cocoa_s: Core_CloseAudio: AudioUnitSetProperty (kAudioUnitProperty_SetInputCallback) failed"); + DEBUG(driver, 0, "cocoa_s: Core_CloseAudio: AudioUnitSetProperty (kAudioUnitProperty_SetInputCallback) failed"); return; } if (CloseComponent(_outputAudioUnit) != noErr) { - DEBUG(driver, 1)("cocoa_s: Core_CloseAudio: CloseComponent failed"); + DEBUG(driver, 0, "cocoa_s: Core_CloseAudio: CloseComponent failed"); return; } } |