Remove the 1 second wait from RunVoicemeeter

Write exception message to Debug
This commit is contained in:
onyx-and-iris 2024-06-29 07:13:11 +01:00
parent 15b3b375bd
commit 4d371a7582

View File

@ -31,7 +31,8 @@ function Login {
break break
} }
catch [CAPIError] { catch [CAPIError] {
$exception = $_.Exception $exception = $_
$exception | Write-Debug
} }
} while ($sw.elapsed -lt $timeout) } while ($sw.elapsed -lt $timeout)
@ -65,7 +66,6 @@ function RunVoicemeeter {
if ($retval -notin @(0)) { if ($retval -notin @(0)) {
throw [CAPIError]::new($retval, "VBVMR_RunVoicemeeter") throw [CAPIError]::new($retval, "VBVMR_RunVoicemeeter")
} }
Start-Sleep -s 1
} }
function P_Dirty { function P_Dirty {