diff --git a/.vscode/launch.json b/.vscode/launch.json index f223050..4ab1ee4 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -38,6 +38,15 @@ "args": [], "createTemporaryIntegratedConsole": true }, + { + "name": "PowerShell: Run Pester Tests", + "type": "PowerShell", + "request": "launch", + "cwd": "${workspaceRoot}", + "script": "${workspaceFolder}/tests/pre-commit.ps1", + "args": [], + "createTemporaryIntegratedConsole": true + }, { "name": "PowerShell: Launch Quick Test", "type": "PowerShell", diff --git a/CHANGELOG.md b/CHANGELOG.md index 14cd47e..e3a9c42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ Before any major/minor/patch is released all test units will be run to verify th ## [Unreleased] These changes have not been added to PSGallery yet - [x] Level methods for Strip,Bus classes implemented. +- [x] More Recorder commands implemented. ## [3.0.0] diff --git a/README.md b/README.md index 0c53ccf..20c6f9c 100644 --- a/README.md +++ b/README.md @@ -390,18 +390,18 @@ $vmr.vban.outstream[3].bit = 16 Certain 'special' commands are defined by the API as performing actions rather than setting values. -The following methods are available: +The following commands are available: - show - hide - restart - shutdown -- Load(filepath) +- showvbanchat: boolean (write only) +- lock: boolean (write only) -The following properties are write only and accept boolean values: +The following methods are available: -- showvbanchat -- lock +- Load($filepath): string example: @@ -415,7 +415,7 @@ $vmr.command.Load("path/to/filename.xml") ### Recorder -The following methods are available: +The following commands are available: - play - stop @@ -423,19 +423,53 @@ The following methods are available: - record - ff - rew +- A1 - A5: boolean +- B1 - B3: boolean +- samplerate: int (22050, 24000, 32000, 44100, 48000, 88200, 96000, 176400, 192000) +- bitresolution: int (8, 16, 24, 32) +- channel: int from 1 to 8 +- kbps: int (32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320) -The following properties accept boolean values. +The following methods are available: -- loop -- A1 - A5 -- B1 - B3 +- Load($filepath): string +- GoTo($timestring): string, must match the format 'hh:mm:ss' +- FileType($format): string, ('wav', 'aiff', 'bwf', 'mp3') example: ```powershell $vmr.recorder.play +$vmr.recorder.A1 = $true -$vmr.recorder.loop = $true +$vmr.recorder.GoTo("00:01:15") # go to 1min 15sec into track +``` + +#### Mode + +The following commands are available: + +- recbus +- playonload +- loop +- multitrack + +example: + +```powershell +$vmr.recorder.mode.loop = $true +``` + +#### ArmStrip[i]|ArmBus[i] + +The following method is available: + +- Set($val): boolean + +example: + +```powershell +$vmr.recorder.armstrip[0].Set($true) ``` ### Multiple parameters