prerectime, prefix

prelim testing passes for potato
- prefix is currently write-only, so added as a method like FileType
This commit is contained in:
pblivingston 2025-12-02 18:06:02 -05:00
parent 58652b5a3f
commit d7cb1d610d
4 changed files with 18 additions and 0 deletions

View File

@ -32,6 +32,8 @@ AddActionMembers now adds ScriptMethods instead of ScriptProperties:
- Bus.Sel, Bus.Monitor, Bus.Vaio
- Bus.Mode.Set($mode)
- Recorder.Armedbus
- Recorder.PreRecTime
- Recorder.Prefix($prefix)
### Changed

View File

@ -528,6 +528,7 @@ The following commands are available:
- A1 - A5: bool
- B1 - B3: bool
- armedbus: int, from 0 to bus index
- prerectime: int, from 0 to 20 seconds
- samplerate: int, (22050, 24000, 32000, 44100, 48000, 88200, 96000, 176400, 192000)
- bitresolution: int, (8, 16, 24, 32)
- channel: int, from 1 to 8
@ -545,6 +546,7 @@ The following methods are available:
- Load($filepath): string
- GoTo($timestring): string, must match the format 'hh:mm:ss'
- FileType($format): string, ('wav', 'aiff', 'bwf', 'mp3')
- Prefix($prefix): string
example:

View File

@ -19,7 +19,10 @@ class Recorder : IRemote {
}
AddActionMembers -PARAMS @('play', 'stop', 'pause', 'replay', 'record', 'ff', 'rew')
AddFloatMembers -PARAMS @('gain')
AddIntMembers -PARAMS @('prerectime')
AddChannelMembers
}
@ -147,6 +150,10 @@ class Recorder : IRemote {
}
$this.Setter('filetype', $val)
}
[void] Prefix ([string]$prefix) {
$this.Setter('prefix', $prefix)
}
}
class RecorderMode : IRemote {

View File

@ -625,6 +625,13 @@ Describe -Tag 'higher', -TestName 'All Higher Tests' {
$vmr.recorder.armedbus = $value
$vmr.recorder.armedbus | Should -Be $value
}
It 'Should set and get Recorder.prerectime' -ForEach @(
@{ Value = 5 }, @{ Value = 20 }
) {
$vmr.recorder.prerectime = $value
$vmr.recorder.prerectime | Should -Be $value
}
}
}