# HG changeset patch
# User Chris Cannam
# Date 1476894812 -3600
# Node ID 3ab6a5f7aca8330e0c16d74266facb615614f67d
# Parent  85c83499be3c01398d4ea0deda5d991795c3a722
Further MSVC build stuff. Committing this as-is because it's building and running now, but there's a lot to tidy up.

diff -r 85c83499be3c -r 3ab6a5f7aca8 framework/MainWindowBase.cpp
--- a/framework/MainWindowBase.cpp	Tue Oct 18 15:56:21 2016 +0100
+++ b/framework/MainWindowBase.cpp	Wed Oct 19 17:33:32 2016 +0100
@@ -2246,13 +2246,17 @@
     if (m_soundOptions & WithAudioInput) {
         m_audioIO = breakfastquay::AudioFactory::
             createCallbackIO(m_recordTarget, m_playSource);
-        m_audioIO->suspend(); // start in suspended state
-        m_playSource->setSystemPlaybackTarget(m_audioIO);
+        if (m_audioIO) {
+            m_audioIO->suspend(); // start in suspended state
+            m_playSource->setSystemPlaybackTarget(m_audioIO);
+        }
     } else {
         m_playTarget = breakfastquay::AudioFactory::
             createCallbackPlayTarget(m_playSource);
-        m_playTarget->suspend(); // start in suspended state
-        m_playSource->setSystemPlaybackTarget(m_playTarget);
+        if (m_playTarget) {
+            m_playTarget->suspend(); // start in suspended state
+            m_playSource->setSystemPlaybackTarget(m_playTarget);
+        }
     }
 
     if (!m_playTarget && !m_audioIO) {
diff -r 85c83499be3c -r 3ab6a5f7aca8 svapp.pro
--- a/svapp.pro	Tue Oct 18 15:56:21 2016 +0100
+++ b/svapp.pro	Wed Oct 19 17:33:32 2016 +0100
@@ -10,7 +10,8 @@
 !exists(config.pri) {
 
     CONFIG += release
-    DEFINES += NDEBUG BUILD_RELEASE NO_TIMING
+    DEFINES += NDEBUG BUILD_RELEASE
+    DEFINES += NO_TIMING
 
     win32-g++ {
         INCLUDEPATH += ../sv-dependency-builds/win32-mingw/include