From ef1a583351e8df2d86c879ad3a403c764c24bc90 Mon Sep 17 00:00:00 2001 From: pblivingston <71585805+pblivingston@users.noreply.github.com> Date: Fri, 19 Dec 2025 12:17:20 -0500 Subject: [PATCH] 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 --- README.md | 2 ++ lib/vban.ps1 | 3 ++- tests/higher.Tests.ps1 | 29 +++++++++++++++-------------- 3 files changed, 19 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 4e0674e..321eea1 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/lib/vban.ps1 b/lib/vban.ps1 index c496ecb..1831235 100644 --- a/lib/vban.ps1 +++ b/lib/vban.ps1 @@ -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') } diff --git a/tests/higher.Tests.ps1 b/tests/higher.Tests.ps1 index d215489..5df633f 100644 --- a/tests/higher.Tests.ps1 +++ b/tests/higher.Tests.ps1 @@ -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 } ) {