mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2025-12-05 05:07:47 +00:00
'stream' -> 'audio'
VbanStream -> VbanAudio for clarity
This commit is contained in:
parent
06942a234d
commit
d87cdbd444
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))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user