summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorgaryscavone <garyscavone@users.noreply.github.com>2023-06-14 14:27:05 -0400
committergaryscavone <garyscavone@users.noreply.github.com>2023-06-15 09:55:07 -0400
commit971506b50ef4a8504b59e85eea7f9d9656c352dd (patch)
tree84ff1033b2f4d6ee20837e5ce7e1ef62b5d1f8d5 /include
parent176a1e731552decf144c60e613af3f0a2e6a4275 (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')
-rw-r--r--include/asio.cpp3
-rw-r--r--include/asiolist.cpp3
2 files changed, 4 insertions, 2 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
diff --git a/include/asiolist.cpp b/include/asiolist.cpp
index 333a662..f3fcf59 100644
--- a/include/asiolist.cpp
+++ b/include/asiolist.cpp
@@ -140,7 +140,8 @@ static void deleteDrvStruct (LPASIODRVSTRUCT lpdrv)
iasio = (IASIO *)lpdrv->asiodrv;
iasio->Release();
}
- delete lpdrv;
+ //delete lpdrv;
+ delete[] lpdrv; // correction from Axel Holzinger
}
}