diff --git a/CHANGELOG.md b/CHANGELOG.md index ac77dbb..26a6a68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index a2271cf..270f9df 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/lib/recorder.ps1 b/lib/recorder.ps1 index d570190..e6cc59b 100644 --- a/lib/recorder.ps1 +++ b/lib/recorder.ps1 @@ -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 { diff --git a/tests/higher.Tests.ps1 b/tests/higher.Tests.ps1 index 22b9c55..fd9f380 100644 --- a/tests/higher.Tests.ps1 +++ b/tests/higher.Tests.ps1 @@ -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 + } } }