mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-09 17:33:33 +00:00
'stream' -> 'audio'
VbanStream -> VbanAudio for clarity
This commit is contained in:
16
lib/vban.ps1
16
lib/vban.ps1
@@ -10,8 +10,8 @@ class Vban : IRemote {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class VbanStream : Vban {
|
class VbanAudio : Vban {
|
||||||
VbanStream ([int]$index, [Object]$remote, [string]$direction) : base ($index, $remote, $direction) {
|
VbanAudio ([int]$index, [Object]$remote, [string]$direction) : base ($index, $remote, $direction) {
|
||||||
AddBoolMembers -PARAMS @('on')
|
AddBoolMembers -PARAMS @('on')
|
||||||
AddStringMembers -PARAMS @('name', 'ip')
|
AddStringMembers -PARAMS @('name', 'ip')
|
||||||
}
|
}
|
||||||
@@ -190,8 +190,8 @@ class VbanText : Vban {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
class VbanInstream : VbanStream {
|
class VbanInAudio : VbanAudio {
|
||||||
VbanInstream ([int]$index, [Object]$remote) : base ($index, $remote, 'in') {
|
VbanInAudio ([int]$index, [Object]$remote) : base ($index, $remote, 'in') {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -205,8 +205,8 @@ class VbanInText : VbanText {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class VbanOutstream : VbanStream {
|
class VbanOutAudio : VbanAudio {
|
||||||
VbanOutstream ([int]$index, [Object]$remote) : base ($index, $remote, 'out') {
|
VbanOutAudio ([int]$index, [Object]$remote) : base ($index, $remote, 'out') {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -224,7 +224,7 @@ function Make_Vban ([Object]$remote) {
|
|||||||
|
|
||||||
for ($i = 0; $i -lt $totalInstreams; $i++) {
|
for ($i = 0; $i -lt $totalInstreams; $i++) {
|
||||||
if ($i -lt $remote.kind.vban.in) {
|
if ($i -lt $remote.kind.vban.in) {
|
||||||
[void]$instream.Add([VbanInstream]::new($i, $remote))
|
[void]$instream.Add([VbanInAudio]::new($i, $remote))
|
||||||
}
|
}
|
||||||
elseif ($i -lt ($remote.kind.vban.in + $remote.kind.vban.midi)) {
|
elseif ($i -lt ($remote.kind.vban.in + $remote.kind.vban.midi)) {
|
||||||
[void]$instream.Add([VbanInMidi]::new($i, $remote))
|
[void]$instream.Add([VbanInMidi]::new($i, $remote))
|
||||||
@@ -235,7 +235,7 @@ function Make_Vban ([Object]$remote) {
|
|||||||
}
|
}
|
||||||
for ($i = 0; $i -lt $totalOutstreams; $i++) {
|
for ($i = 0; $i -lt $totalOutstreams; $i++) {
|
||||||
if ($i -lt $remote.kind.vban.out) {
|
if ($i -lt $remote.kind.vban.out) {
|
||||||
[void]$outstream.Add([VbanOutstream]::new($i, $remote))
|
[void]$outstream.Add([VbanOutAudio]::new($i, $remote))
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
[void]$outstream.Add([VbanOutMidi]::new($i, $remote))
|
[void]$outstream.Add([VbanOutMidi]::new($i, $remote))
|
||||||
|
|||||||
Reference in New Issue
Block a user