vban commands added, tests updated

Added vban_in/vban_out to definetypes in base

Added string attribute label for strips

Added vban.ps1 which defines instream/oustream attributes.

Version bumped and changelog updated

Unit tests updated to reflect changes
This commit is contained in:
onyx-and-iris
2021-05-11 19:09:57 +01:00
parent 5ceacb4486
commit a66a101ba1
6 changed files with 484 additions and 6 deletions

View File

@@ -609,5 +609,263 @@ Describe -Tag 'higher', -TestName 'All Alias Tests' {
$vmr.bus[2].gain | Should -Be -2.5
}
}
Context 'Strip[i].Label' {
It 'Should set Strip[0].Label to test0' {
$vmr.strip[0].label = 'test0'
$vmr.strip[0].label | Should -Be 'test0'
}
It 'Should set Strip[0].Label to test1' {
$vmr.strip[0].label = 'test1'
$vmr.strip[0].label | Should -Be 'test1'
}
It 'Should set Strip[1].Label to test0' {
$vmr.strip[1].label = 'test0'
$vmr.strip[1].label | Should -Be 'test0'
}
It 'Should set Strip[1].Label to test1' {
$vmr.strip[1].label = 'test1'
$vmr.strip[1].label | Should -Be 'test1'
}
It 'Should set Strip[2].Label to test0' {
$vmr.strip[2].label = 'test0'
$vmr.strip[2].label | Should -Be 'test0'
}
It 'Should set Strip[2].Label to test1' {
$vmr.strip[2].label = 'test1'
$vmr.strip[2].label | Should -Be 'test1'
}
}
}
Describe 'VBAN Command Tests' {
Context 'vban_in[i].on' {
It 'Should set vban_in[0].on to 1' {
$vmr.vban_in[0].on = $true
$vmr.vban_in[0].on | Should -Be $true
}
It 'Should set vban_in[0].on to 0' {
$vmr.vban_in[0].on = $true
$vmr.vban_in[0].on | Should -Be $true
}
It 'Should set vban_in[1].on to 1' {
$vmr.vban_in[1].on = $true
$vmr.vban_in[1].on | Should -Be $true
}
It 'Should set vban_in[1].on to 0' {
$vmr.vban_in[1].on = $true
$vmr.vban_in[1].on | Should -Be $true
}
It 'Should set vban_in[2].on to 1' {
$vmr.vban_in[2].on = $true
$vmr.vban_in[2].on | Should -Be $true
}
It 'Should set vban_in[2].on to 0' {
$vmr.vban_in[2].on = $true
$vmr.vban_in[2].on | Should -Be $true
}
}
Context 'vban_in[i].name' {
It 'Should set vban_in[0].name to test0' {
$vmr.vban_in[0].name = 'test0'
$vmr.vban_in[0].name | Should -Be 'test0'
}
It 'Should set vban_in[0].name to test1' {
$vmr.vban_in[0].name = 'test1'
$vmr.vban_in[0].name | Should -Be 'test1'
}
It 'Should set vban_in[1].name to test0' {
$vmr.vban_in[1].name = 'test2'
$vmr.vban_in[1].name | Should -Be 'test2'
}
It 'Should set vban_in[1].name to test1' {
$vmr.vban_in[1].name = 'test3'
$vmr.vban_in[1].name | Should -Be 'test3'
}
It 'Should set vban_in[2].name to test0' {
$vmr.vban_in[2].name = 'test4'
$vmr.vban_in[2].name | Should -Be 'test4'
}
It 'Should set vban_in[2].name to test1' {
$vmr.vban_in[2].name = 'test5'
$vmr.vban_in[2].name | Should -Be 'test5'
}
}
Context 'vban_in[i].ip' {
It 'Should set vban_in[0].ip to test0' {
$vmr.vban_in[0].ip = '0.0.0.0'
$vmr.vban_in[0].ip | Should -Be '0.0.0.0'
}
It 'Should set vban_in[0].ip to test1' {
$vmr.vban_in[0].ip = '127.0.0.1'
$vmr.vban_in[0].ip | Should -Be '127.0.0.1'
}
It 'Should set vban_in[1].ip to test0' {
$vmr.vban_in[1].ip = '0.0.0.0'
$vmr.vban_in[1].ip | Should -Be '0.0.0.0'
}
It 'Should set vban_in[1].ip to test1' {
$vmr.vban_in[1].ip = '127.0.0.1'
$vmr.vban_in[1].ip | Should -Be '127.0.0.1'
}
It 'Should set vban_in[2].ip to test0' {
$vmr.vban_in[2].ip = '0.0.0.0'
$vmr.vban_in[2].ip | Should -Be '0.0.0.0'
}
It 'Should set vban_in[2].ip to test1' {
$vmr.vban_in[2].ip = '127.0.0.1'
$vmr.vban_in[2].ip | Should -Be '127.0.0.1'
}
}
Context 'vban_out[i].sr' {
It 'Should set vban_out[0].sr to 44100' {
$vmr.vban_out[0].sr = 44100
$vmr.vban_out[0].sr | Should -Be 44100
}
It 'Should set vban_out[0].sr to 48000' {
$vmr.vban_out[0].sr = 48000
$vmr.vban_out[0].sr | Should -Be 48000
}
It 'Should set vban_out[1].sr to 44100' {
$vmr.vban_out[1].sr = 44100
$vmr.vban_out[1].sr | Should -Be 44100
}
It 'Should set vban_out[1].sr to 48000' {
$vmr.vban_out[1].sr = 48000
$vmr.vban_out[1].sr | Should -Be 48000
}
It 'Should set vban_out[2].sr to 44100' {
$vmr.vban_out[2].sr = 44100
$vmr.vban_out[2].sr | Should -Be 44100
}
It 'Should set vban_out[2].sr to 48000' {
$vmr.vban_out[2].sr = 48000
$vmr.vban_out[2].sr | Should -Be 48000
}
}
Context 'vban_out[i].channel' {
It 'Should set vban_out[0].channel to 1' {
$vmr.vban_out[0].channel = 1
$vmr.vban_out[0].channel | Should -Be 1
}
It 'Should set vban_out[0].channel to 2' {
$vmr.vban_out[0].channel = 2
$vmr.vban_out[0].channel | Should -Be 2
}
It 'Should set vban_out[1].channel to 3' {
$vmr.vban_out[1].channel = 3
$vmr.vban_out[1].channel | Should -Be 3
}
It 'Should set vban_out[1].channel to 4' {
$vmr.vban_out[1].channel = 4
$vmr.vban_out[1].channel | Should -Be 4
}
It 'Should set vban_out[2].channel to 5' {
$vmr.vban_out[2].channel = 5
$vmr.vban_out[2].channel | Should -Be 5
}
It 'Should set vban_out[2].channel to 6' {
$vmr.vban_out[2].channel = 6
$vmr.vban_out[2].channel | Should -Be 6
}
}
Context 'vban_out[i].bit' {
It 'Should set vban_out[0].bit to 16' {
$vmr.vban_out[0].bit = 16
$vmr.vban_out[0].bit | Should -Be 16
}
It 'Should set vban_out[0].bit to 24' {
$vmr.vban_out[0].bit = 24
$vmr.vban_out[0].bit | Should -Be 24
}
It 'Should set vban_out[1].bit to 16' {
$vmr.vban_out[1].bit = 16
$vmr.vban_out[1].bit | Should -Be 16
}
It 'Should set vban_out[1].bit to 24' {
$vmr.vban_out[1].bit = 24
$vmr.vban_out[1].bit | Should -Be 24
}
It 'Should set vban_out[2].bit to 16' {
$vmr.vban_out[2].bit = 16
$vmr.vban_out[2].bit | Should -Be 16
}
It 'Should set vban_out[2].bit to 24' {
$vmr.vban_out[2].bit = 24
$vmr.vban_out[2].bit | Should -Be 24
}
}
Context 'vban_out[i].route' {
It 'Should set vban_out[0].route to 0' {
$vmr.vban_out[0].route = 0
$vmr.vban_out[0].route | Should -Be 0
}
It 'Should set vban_out[0].route to 1' {
$vmr.vban_out[0].route = 1
$vmr.vban_out[0].route | Should -Be 1
}
It 'Should set vban_out[1].route to 2' {
$vmr.vban_out[1].route = 2
$vmr.vban_out[1].route | Should -Be 2
}
It 'Should set vban_out[1].route to 3' {
$vmr.vban_out[1].route = 3
$vmr.vban_out[1].route | Should -Be 3
}
It 'Should set vban_out[2].route to 4' {
$vmr.vban_out[2].route = 4
$vmr.vban_out[2].route | Should -Be 4
}
It 'Should set vban_out[2].route to 5' {
$vmr.vban_out[2].route = 5
$vmr.vban_out[2].route | Should -Be 5
}
}
}
}