mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-18 13:33:31 +00:00
xy and fx parameters added to strip/bus classes.
GetType, GetVersion, SendText added to Remote class. Console output now written to Debug stream. ToString() method overriden for higher classes. formatter run through all files.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
Function Setup_DLL {
|
||||
function Setup_DLL {
|
||||
try {
|
||||
$vb_path = Get_VBPath
|
||||
|
||||
@@ -7,7 +7,7 @@ Function Setup_DLL {
|
||||
}
|
||||
else {
|
||||
$dll = Join-Path -Path $vb_path -ChildPath ("VoicemeeterRemote" + `
|
||||
(& { If ([Environment]::Is64BitOperatingSystem) { "64" } Else { "" } }) + `
|
||||
(& { if ([Environment]::Is64BitOperatingSystem) { "64" } else { "" } }) + `
|
||||
".dll")
|
||||
}
|
||||
}
|
||||
@@ -25,6 +25,8 @@ Function Setup_DLL {
|
||||
public static extern int VBVMR_RunVoicemeeter(Int64 run);
|
||||
[DllImport(@"$dll")]
|
||||
public static extern int VBVMR_GetVoicemeeterType(ref int ptr);
|
||||
[DllImport(@"$dll")]
|
||||
public static extern int VBVMR_GetVoicemeeterVersion(ref int ptr);
|
||||
|
||||
[DllImport(@"$dll")]
|
||||
public static extern int VBVMR_MacroButton_IsDirty();
|
||||
@@ -51,4 +53,4 @@ Function Setup_DLL {
|
||||
|
||||
Add-Type -MemberDefinition $Signature -Name Remote -Namespace Voicemeeter -PassThru | Out-Null
|
||||
return $true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user