From 30da69469bd63ef73a0e7f0668fc2a80478b907b Mon Sep 17 00:00:00 2001 From: pblivingston <71585805+pblivingston@users.noreply.github.com> Date: Tue, 9 Dec 2025 20:08:19 -0500 Subject: [PATCH] asio, recorder.prefix string pester tests for potato pass manual test passes - bus.device.asio --- lib/bus.ps1 | 12 +----------- lib/recorder.ps1 | 11 +---------- 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/lib/bus.ps1 b/lib/bus.ps1 index 85ece7d..38e32e4 100644 --- a/lib/bus.ps1 +++ b/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) { diff --git a/lib/recorder.ps1 b/lib/recorder.ps1 index b07c611..eef609b 100644 --- a/lib/recorder.ps1 +++ b/lib/recorder.ps1 @@ -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")