mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2025-01-18 05:10:48 +00:00
Remove the 1 second wait from RunVoicemeeter
Write exception message to Debug
This commit is contained in:
parent
15b3b375bd
commit
4d371a7582
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user