diff options
| author | garyscavone <garyscavone@users.noreply.github.com> | 2023-06-14 14:27:05 -0400 |
|---|---|---|
| committer | garyscavone <garyscavone@users.noreply.github.com> | 2023-06-15 09:55:07 -0400 |
| commit | 971506b50ef4a8504b59e85eea7f9d9656c352dd (patch) | |
| tree | 84ff1033b2f4d6ee20837e5ce7e1ef62b5d1f8d5 /include/asio.cpp | |
| parent | 176a1e731552decf144c60e613af3f0a2e6a4275 (diff) | |
Various ASIO updates. Code to close stream if unplugged or sample rate changed not tested due to lack of hardware.
Diffstat (limited to 'include/asio.cpp')
| -rw-r--r-- | include/asio.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asio.cpp b/include/asio.cpp index b241663..3ab90cf 100644 --- a/include/asio.cpp +++ b/include/asio.cpp @@ -98,7 +98,8 @@ ASIOError ASIOExit(void) if(theAsioDriver)
{
#if WINDOWS
- asioDrivers->removeCurrentDriver();
+ if ( asioDrivers ) // added by Axel Holzinger
+ asioDrivers->removeCurrentDriver();
#else
delete theAsioDriver;
#endif
|
