mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2025-12-21 20:27:47 +00:00
asio, recorder.prefix
string pester tests for potato pass manual test passes - bus.device.asio
This commit is contained in:
parent
59f3168436
commit
30da69469b
12
lib/bus.ps1
12
lib/bus.ps1
@ -99,23 +99,13 @@ class VirtualBus : Bus {
|
|||||||
class BusDevice : IODevice {
|
class BusDevice : IODevice {
|
||||||
BusDevice ([int]$index, [Object]$remote) : base ($index, $remote) {
|
BusDevice ([int]$index, [Object]$remote) : base ($index, $remote) {
|
||||||
if ($this.index -eq 0) {
|
if ($this.index -eq 0) {
|
||||||
$this.AddASIO()
|
AddStringMembers -PARAMS @('asio') -WriteOnly
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[string] identifier () {
|
[string] identifier () {
|
||||||
return 'Bus[' + $this.index + '].Device'
|
return 'Bus[' + $this.index + '].Device'
|
||||||
}
|
}
|
||||||
|
|
||||||
hidden [void] AddASIO () {
|
|
||||||
Add-Member -InputObject $this -MemberType ScriptProperty -Name 'asio' `
|
|
||||||
-Value {
|
|
||||||
return Write-Warning ("ERROR: $($this.identifier()).asio is write only")
|
|
||||||
} -SecondValue {
|
|
||||||
param([string]$arg)
|
|
||||||
return $this.Setter('asio', $arg)
|
|
||||||
} -Force
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function Make_Buses ([Object]$remote) {
|
function Make_Buses ([Object]$remote) {
|
||||||
|
|||||||
@ -25,6 +25,7 @@ class Recorder : IRemote {
|
|||||||
AddActionMembers -PARAMS @('replay', 'ff', 'rew')
|
AddActionMembers -PARAMS @('replay', 'ff', 'rew')
|
||||||
AddFloatMembers -PARAMS @('gain')
|
AddFloatMembers -PARAMS @('gain')
|
||||||
AddIntMembers -PARAMS @('prerectime')
|
AddIntMembers -PARAMS @('prerectime')
|
||||||
|
AddStringMembers -PARAMS @('prefix') -WriteOnly
|
||||||
|
|
||||||
AddChannelMembers
|
AddChannelMembers
|
||||||
}
|
}
|
||||||
@ -117,16 +118,6 @@ class Recorder : IRemote {
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
hidden $_prefix = $($this | Add-Member ScriptProperty 'prefix' `
|
|
||||||
{
|
|
||||||
return Write-Warning ("ERROR: $($this.identifier()).prefix is write only")
|
|
||||||
} `
|
|
||||||
{
|
|
||||||
param([string]$arg)
|
|
||||||
$this._prefix = $this.Setter('prefix', $arg)
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
hidden $_filetype = $($this | Add-Member ScriptProperty 'filetype' `
|
hidden $_filetype = $($this | Add-Member ScriptProperty 'filetype' `
|
||||||
{
|
{
|
||||||
return Write-Warning ("ERROR: $($this.identifier()).filetype is write only")
|
return Write-Warning ("ERROR: $($this.identifier()).filetype is write only")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user