mirror of
https://github.com/onyx-and-iris/nvda-voicemeeter.git
synced 2024-11-22 18:00:50 +00:00
implements default labels
This commit is contained in:
parent
4f4a577af9
commit
7ff9c9e33b
@ -239,7 +239,8 @@ class Builder:
|
|||||||
|
|
||||||
outputs = list()
|
outputs = list()
|
||||||
[step(outputs) for step in (add_strip_outputs,)]
|
[step(outputs) for step in (add_strip_outputs,)]
|
||||||
return psg.Frame(self.vm.strip[i].label, outputs)
|
label = self.vm.strip[i].label
|
||||||
|
return psg.Frame(label if label else f"Hardware Input {i + 1}", outputs)
|
||||||
|
|
||||||
def make_tab1_rows(self) -> psg.Frame:
|
def make_tab1_rows(self) -> psg.Frame:
|
||||||
layout = [[self.make_tab1_row(i)] for i in range(self.kind.phys_in)]
|
layout = [[self.make_tab1_row(i)] for i in range(self.kind.phys_in)]
|
||||||
@ -264,7 +265,8 @@ class Builder:
|
|||||||
|
|
||||||
outputs = list()
|
outputs = list()
|
||||||
[step(outputs) for step in (add_strip_outputs,)]
|
[step(outputs) for step in (add_strip_outputs,)]
|
||||||
return psg.Frame(self.vm.strip[i].label, outputs)
|
label = self.vm.strip[i].label
|
||||||
|
return psg.Frame(label if label else f"Virtual Input {i - self.kind.phys_out + 1}", outputs)
|
||||||
|
|
||||||
def make_tab2_rows(self) -> psg.Frame:
|
def make_tab2_rows(self) -> psg.Frame:
|
||||||
layout = [[self.make_tab2_row(i)] for i in range(self.kind.phys_in, self.kind.phys_in + self.kind.virt_in)]
|
layout = [[self.make_tab2_row(i)] for i in range(self.kind.phys_in, self.kind.phys_in + self.kind.virt_in)]
|
||||||
@ -278,7 +280,11 @@ class Builder:
|
|||||||
|
|
||||||
buses = list()
|
buses = list()
|
||||||
[step(buses) for step in (add_strip_outputs,)]
|
[step(buses) for step in (add_strip_outputs,)]
|
||||||
return psg.Frame(self.vm.bus[i].label, buses)
|
label = self.vm.bus[i].label
|
||||||
|
if i < self.kind.phys_out:
|
||||||
|
return psg.Frame(label if label else f"Physical Bus {i + 1}", buses)
|
||||||
|
else:
|
||||||
|
return psg.Frame(label if label else f"Virtual Bus {i - self.kind.phys_out + 1}", buses)
|
||||||
|
|
||||||
def make_tab3_rows(self):
|
def make_tab3_rows(self):
|
||||||
layout = [[self.make_tab3_row(i)] for i in range(self.kind.num_bus)]
|
layout = [[self.make_tab3_row(i)] for i in range(self.kind.num_bus)]
|
||||||
|
Loading…
Reference in New Issue
Block a user