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 {
|
||||
BusDevice ([int]$index, [Object]$remote) : base ($index, $remote) {
|
||||
if ($this.index -eq 0) {
|
||||
$this.AddASIO()
|
||||
AddStringMembers -PARAMS @('asio') -WriteOnly
|
||||
}
|
||||
}
|
||||
|
||||
[string] identifier () {
|
||||
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) {
|
||||
|
||||
@ -25,6 +25,7 @@ class Recorder : IRemote {
|
||||
AddActionMembers -PARAMS @('replay', 'ff', 'rew')
|
||||
AddFloatMembers -PARAMS @('gain')
|
||||
AddIntMembers -PARAMS @('prerectime')
|
||||
AddStringMembers -PARAMS @('prefix') -WriteOnly
|
||||
|
||||
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' `
|
||||
{
|
||||
return Write-Warning ("ERROR: $($this.identifier()).filetype is write only")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user