Set callbackPushed flag if there is no render stream (input only mode)
authorMarcus Tomlinson <themarcustomlinson@gmail.com>
Sat, 26 Apr 2014 07:14:49 +0000 (09:14 +0200)
committerMarcus Tomlinson <themarcustomlinson@gmail.com>
Sat, 26 Apr 2014 07:14:49 +0000 (09:14 +0200)
RtAudio.cpp

index 039b5d03a362d74fcbae609a7d2b534022549ccc..3af802974697c21dae9ef1e135d3bc4005b7be90 100644 (file)
@@ -4956,6 +4956,10 @@ void RtApiWasapi::wasapiThread()
                                                 convBufferSize * stream_.nDeviceChannels[OUTPUT],\r
                                                 stream_.deviceFormat[OUTPUT] );\r
     }\r
+    else {\r
+      // if there is no render stream, set callbackPushed flag\r
+      callbackPushed = true;\r
+    }\r
 \r
     // Stream Capture\r
     // ==============\r