diff options
| author | Marcus Tomlinson <marcustomlinson@MacBook-Air.local> | 2018-04-20 18:37:02 +0200 |
|---|---|---|
| committer | Marcus Tomlinson <marcustomlinson@MacBook-Air.local> | 2018-08-22 09:29:12 +0100 |
| commit | 109ab70963f7a3cea33236901d00073502dd7438 (patch) | |
| tree | 6078cebb2ce639b2b0c5869d0ec31187f304d1f2 /RtAudio.cpp | |
| parent | ebf50fc3e48b908c491af4218e113d05b5f0f3eb (diff) | |
Move stream_.state update to the end of wasapiThread()
Diffstat (limited to 'RtAudio.cpp')
| -rw-r--r-- | RtAudio.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/RtAudio.cpp b/RtAudio.cpp index 36bebd4..18e900e 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -1,4 +1,4 @@ -/************************************************************************/ +/************************************************************************/ /*! \class RtAudio \brief Realtime audio i/o C++ classes. @@ -5366,13 +5366,11 @@ Exit: CoUninitialize(); + if ( !errorText_.empty() ) + error( errorType ); + // update stream state stream_.state = STREAM_STOPPED; - - if ( errorText_.empty() ) - return; - else - error( errorType ); } //******************** End of __WINDOWS_WASAPI__ *********************// |
