Browse Source

Fix order of calling CoUninitialize()

Closes #80
tags/5.0.0
Stephen Sinclair 7 years ago
parent
commit
3125beff6a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      RtAudio.cpp

+ 1
- 1
RtAudio.cpp View File

@@ -5363,8 +5363,8 @@ RtApiDs :: RtApiDs()
RtApiDs :: ~RtApiDs()
{
if ( coInitialized_ ) CoUninitialize(); // balanced call.
if ( stream_.state != STREAM_CLOSED ) closeStream();
if ( coInitialized_ ) CoUninitialize(); // balanced call.
}
// The DirectSound default output is always the first device.


Loading…
Cancel
Save