From f2885d89783d28564a6497345f42461beec69889 Mon Sep 17 00:00:00 2001 From: Nathan Perkins Date: Wed, 4 Nov 2015 14:02:37 -0500 Subject: [PATCH] Change output logging. --- SyllableDetector/AudioInterface.swift | 1 - SyllableDetector/ViewControllerProcessor.swift | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/SyllableDetector/AudioInterface.swift b/SyllableDetector/AudioInterface.swift index ec526ee..bdd4264 100644 --- a/SyllableDetector/AudioInterface.swift +++ b/SyllableDetector/AudioInterface.swift @@ -27,7 +27,6 @@ func renderOutput(inRefCon:UnsafeMutablePointer, actionFlags: UnsafeMutabl // decrement high for if 0 < high { aoi.outputHighFor[channel] = high - min(high, frameCountAsInt) - DLog("write high") } // write data out diff --git a/SyllableDetector/ViewControllerProcessor.swift b/SyllableDetector/ViewControllerProcessor.swift index 996f27a..bcbe207 100644 --- a/SyllableDetector/ViewControllerProcessor.swift +++ b/SyllableDetector/ViewControllerProcessor.swift @@ -88,6 +88,9 @@ class Processor: AudioInputInterfaceDelegate { // process dispatch_async(queueProcessing) { if self.detectors[index].seenSyllable() { + // log + DLog("\(channel) play") + // play high self.interfaceOutput.createHighOutput(self.entries[index].outputChannel, forDuration: self.highDuration) }