# HG changeset patch # User Chris Cannam # Date 1487691183 0 # Node ID 0bb2ec333d3b56a43f89cf03040492101ce19d54 # Parent 48cfa4e2bfc13b302f86ec17910249ee47cd9989 Logging from audio I/O diff -r 48cfa4e2bfc1 -r 0bb2ec333d3b framework/MainWindowBase.cpp --- a/framework/MainWindowBase.cpp Wed Jan 18 14:22:25 2017 +0000 +++ b/framework/MainWindowBase.cpp Tue Feb 21 15:33:03 2017 +0000 @@ -2316,11 +2316,22 @@ return FileOpenSucceeded; } +class AudioLogCallback : public breakfastquay::AudioFactory::LogCallback +{ +public: + void log(std::string message) const override { + SVDEBUG << message << endl; + } +}; + void MainWindowBase::createAudioIO() { if (m_playTarget || m_audioIO) return; + static AudioLogCallback audioLogCallback; + breakfastquay::AudioFactory::setLogCallback(&audioLogCallback); + if (!(m_soundOptions & WithAudioOutput)) return; QSettings settings;