@@ -271,25 +271,19 @@ func EQM_StartIO (inDriver: AudioServerPlugInDriverRef, inDeviceObjectID: AudioO
271271 // So, work only needs to be done when the first client starts. All subsequent starts simply
272272 // increment the counter.
273273 guard EQMDriver . validateDriver ( inDriver) else { return kAudioHardwareBadObjectError }
274- log ( " EQM_StartIO() - Invoked " )
275274
276275 let status = EQMDevice . startIO ( )
277276
278- log ( " EQM_StartIO() - Finished " )
279-
280277 return status
281278}
282279
283280func EQM_StopIO ( inDriver: AudioServerPlugInDriverRef , inDeviceObjectID: AudioObjectID , inClientID: UInt32 ) -> OSStatus {
284281 // This call tells the device that the client has stopped IO. The driver can stop the hardware
285282 // once all clients have stopped.
286283 guard EQMDriver . validateDriver ( inDriver) else { return kAudioHardwareBadObjectError }
287- log ( " EQM_StopIO() - Invoked " )
288284
289285 let status = EQMDevice . stopIO ( )
290286
291- log ( " EQM_StopIO() - Finished " )
292-
293287 return status
294288}
295289
@@ -303,14 +297,12 @@ func EQM_GetZeroTimeStamp (inDriver: AudioServerPlugInDriverRef, inDeviceObjectI
303297 // For this device, the zero time stamps' sample time increments every kDevice_RingBufferSize
304298 // frames and the host time increments by kDevice_RingBufferSize * gDevice_HostTicksPerFrame.
305299 guard EQMDriver . validateDriver ( inDriver) else { return kAudioHardwareBadObjectError }
306- log ( " EQM_GetZeroTimeStamp() - Invoked " )
307300
308301 let status = EQMDevice . getZeroTimeStamp (
309302 outSampleTime: outSampleTime,
310303 outHostTime: outHostTime,
311304 outSeed: outSeed
312305 )
313- log ( " EQM_GetZeroTimeStamp() - Finished: Status = \( status) Sample TIme = \( outSampleTime. pointee) hostTime = \( outHostTime. pointee) Seed = \( outSeed. pointee) " )
314306
315307 return status
316308}
@@ -321,8 +313,6 @@ func EQM_WillDoIOOperation (inDriver: AudioServerPlugInDriverRef, inDeviceObject
321313 // we only support reading input data and writing output data.
322314 guard EQMDriver . validateDriver ( inDriver) else { return kAudioHardwareBadObjectError }
323315
324- log ( " EQM_WillDoIOOperation() - Invoked " )
325-
326316 var willDo = false
327317 var willDoInPlace = true
328318
@@ -341,8 +331,6 @@ func EQM_WillDoIOOperation (inDriver: AudioServerPlugInDriverRef, inDeviceObject
341331 outWillDo. pointee = DarwinBoolean ( willDo)
342332 outWillDoInPlace. pointee = DarwinBoolean ( willDoInPlace)
343333
344- log ( " EQM_WillDoIOOperation() - Finished: willDo: \( willDo) willDoInPlace: \( willDoInPlace) " )
345-
346334 return noErr
347335}
348336
@@ -351,7 +339,7 @@ func EQM_BeginIOOperation (inDriver: AudioServerPlugInDriverRef, inDeviceObjectI
351339 // This is called at the beginning of an IO operation. This device doesn't do anything, so just
352340 // check the arguments and return.
353341 guard EQMDriver . validateDriver ( inDriver) else { return kAudioHardwareBadObjectError }
354- log ( " EQM_BeginIOOperation() " )
342+
355343 return noErr
356344}
357345
@@ -363,8 +351,6 @@ func EQM_DoIOOperation (inDriver: AudioServerPlugInDriverRef, inDeviceObjectID:
363351 return noErr
364352 }
365353
366- log ( " EQM_DoIOOperation() - Started " )
367-
368354 let status = EQMDevice . doIO (
369355 clientID: inClientID,
370356 operationID: inOperationID,
@@ -373,15 +359,13 @@ func EQM_DoIOOperation (inDriver: AudioServerPlugInDriverRef, inDeviceObjectID:
373359 frameSize: inIOBufferFrameSize
374360 )
375361
376- log ( " EQM_DoIOOperation() - Ended - Status: \( status) " )
377-
378362 return status
379363}
380364
381365func EQM_EndIOOperation ( inDriver: AudioServerPlugInDriverRef , inDeviceObjectID: AudioObjectID , inClientID: UInt32 , inOperationID: UInt32 , inIOBufferFrameSize: UInt32 , inIOCycleInfo: UnsafePointer < AudioServerPlugInIOCycleInfo > ) -> OSStatus {
382366 // This is called at the end of an IO operation. This device doesn't do anything, so just check
383367 // the arguments and return.
384368 guard EQMDriver . validateDriver ( inDriver) else { return kAudioHardwareBadObjectError }
385- log ( " EQM_EndIOOperation() " )
369+
386370 return noErr
387371}
0 commit comments