From 4d371a75820e8a496ef85dfb95a3a0bd229ad057 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sat, 29 Jun 2024 07:13:11 +0100 Subject: [PATCH] Remove the 1 second wait from RunVoicemeeter Write exception message to Debug --- lib/base.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/base.ps1 b/lib/base.ps1 index e728432..cf67c2f 100644 --- a/lib/base.ps1 +++ b/lib/base.ps1 @@ -31,7 +31,8 @@ function Login { break } catch [CAPIError] { - $exception = $_.Exception + $exception = $_ + $exception | Write-Debug } } while ($sw.elapsed -lt $timeout) @@ -65,7 +66,6 @@ function RunVoicemeeter { if ($retval -notin @(0)) { throw [CAPIError]::new($retval, "VBVMR_RunVoicemeeter") } - Start-Sleep -s 1 } function P_Dirty {