From 8f2bb7fd433b4faac25a87729c6eec7fa1f07458 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 26 Dec 2006 22:04:53 +0000 Subject: (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. --- sound/cocoa_s.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'sound') 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; } } -- cgit v1.2.3-54-g00ecf