mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2025-12-25 14:07:46 +00:00
video, midi outstream routes
- VMR bug: video outstream route is write-only; test commented - midi outstream route test was improperly int; moved to string prelim tests for potato pass
This commit is contained in:
parent
0d303e20be
commit
ef1a583351
@ -515,6 +515,8 @@ The following video Vban.outstream[9] properties are available:
|
||||
- vcursor: bool
|
||||
- route: int, from 0 to 4
|
||||
|
||||
Route is currently write-only. This is a VMR bug.
|
||||
|
||||
for example:
|
||||
|
||||
```powershell
|
||||
|
||||
@ -150,7 +150,8 @@ class VbanOutMidi : VbanMidi {
|
||||
|
||||
class VbanOutVideo : VbanVideo {
|
||||
VbanOutVideo ([int]$index, [Object]$remote) : base ($index, $remote, 'out') {
|
||||
AddIntMembers -PARAMS @('vfps', 'vquality', 'route')
|
||||
AddIntMembers -PARAMS @('vfps', 'vquality')
|
||||
AddIntMembers -WriteOnly -PARAMS @('route')
|
||||
AddBoolMembers -PARAMS @('vcursor')
|
||||
}
|
||||
|
||||
|
||||
@ -718,18 +718,6 @@ Describe -Tag 'higher', -TestName 'All Higher Tests' {
|
||||
}
|
||||
}
|
||||
|
||||
Context 'Outstream, midi only' -ForEach @(
|
||||
@{ Index = $vban_outM }
|
||||
) {
|
||||
It "Should set vban.outstream[$index].route" -ForEach @(
|
||||
@{ Value = 7; Expected = 7 }
|
||||
@{ Value = 3; Expected = 3 }
|
||||
) {
|
||||
$vmr.vban.outstream[$index].route = $value
|
||||
$vmr.vban.outstream[$index].route | Should -Be $expected
|
||||
}
|
||||
}
|
||||
|
||||
Context 'Outstream, video only' -ForEach @(
|
||||
@{ Index = $vban_outV }
|
||||
) {
|
||||
@ -749,13 +737,13 @@ Describe -Tag 'higher', -TestName 'All Higher Tests' {
|
||||
$vmr.vban.outstream[$index].vquality | Should -Be $expected
|
||||
}
|
||||
|
||||
It "Should set vban.outstream[$index].route" -ForEach @(
|
||||
<# It "Should set vban.outstream[$index].route" -ForEach @(
|
||||
@{ Value = 1; Expected = 1 }
|
||||
@{ Value = 4; Expected = 4 }
|
||||
) {
|
||||
$vmr.vban.outstream[$index].route = $value
|
||||
$vmr.vban.outstream[$index].route | Should -Be $expected
|
||||
}
|
||||
} #>
|
||||
}
|
||||
}
|
||||
|
||||
@ -1086,6 +1074,19 @@ Describe -Tag 'higher', -TestName 'All Higher Tests' {
|
||||
}
|
||||
}
|
||||
|
||||
Context 'Outstream, midi only' -ForEach @(
|
||||
@{ Index = $vban_outM }
|
||||
) {
|
||||
It "Should set vban.outstream[$index].route" -ForEach @(
|
||||
@{ Value = 'aux_in'; Expected = 'aux_in' }
|
||||
@{ Value = 'all_in'; Expected = 'all_in' }
|
||||
@{ Value = 'midi_out'; Expected = 'midi_out' }
|
||||
) {
|
||||
$vmr.vban.outstream[$index].route = $value
|
||||
$vmr.vban.outstream[$index].route | Should -Be $expected
|
||||
}
|
||||
}
|
||||
|
||||
Context 'Outstream, video only' -ForEach @(
|
||||
@{ Index = $vban_outV }
|
||||
) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user