From 046861c8588404c3a6f173e39ea9a52461b4c01d Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Mon, 20 Nov 2017 18:30:29 -0500 Subject: [PATCH] Add debug messages to Audio Interface --- src/core/AudioInterface.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/AudioInterface.cpp b/src/core/AudioInterface.cpp index f98a2e40..19a5aed2 100644 --- a/src/core/AudioInterface.cpp +++ b/src/core/AudioInterface.cpp @@ -265,6 +265,7 @@ void AudioInterface::openDevice(int deviceId, float sampleRate, int blockSize) { try { // Don't use stream parameters if 0 input or output channels + debug("Opening audio stream %d", deviceId); stream.openStream( numOutputs == 0 ? NULL : &outParameters, numInputs == 0 ? NULL : &inParameters, @@ -276,6 +277,7 @@ void AudioInterface::openDevice(int deviceId, float sampleRate, int blockSize) { } try { + debug("Starting audio stream %d", deviceId); stream.startStream(); } catch (RtAudioError &e) { @@ -293,7 +295,9 @@ void AudioInterface::closeDevice() { if (stream.isStreamOpen()) { try { + debug("Aborting audio stream %d", deviceId); stream.abortStream(); + debug("Closing audio stream %d", deviceId); stream.closeStream(); } catch (RtAudioError &e) {