mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2025-12-05 05:07:47 +00:00
prerectime, prefix
prelim testing passes for potato - prefix is currently write-only, so added as a method like FileType
This commit is contained in:
parent
58652b5a3f
commit
d7cb1d610d
@ -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
|
||||
|
||||
|
||||
@ -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:
|
||||
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user