Skip to content

Commit

Permalink
placeholder inputSelction
Browse files Browse the repository at this point in the history
  • Loading branch information
Novecento99 committed Jul 30, 2024
1 parent aa8ad96 commit a2f9c8f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion soundMonitorGUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,19 @@ def __init__(self):
self.inputSelector.setCurrentText(sd.query_devices()[1]["name"])

print(sd.default.device)
print()
print(sd.query_devices())


self.outputSelector = QComboBox()
self.outputSelector.addItems(set([device["name"][0:80] for device in self.outputDevices]))
self.outputSelector.setCurrentText(sd.query_devices()[4]["name"])
self.debugButton = QPushButton("debug")
self.options = QCheckBox("show options")



self.inputSelector.currentIndexChanged.connect(self.ChangeInput)

self.volumeBar.setStyleSheet("""
QProgressBar {
border: 1px solid grey;
Expand Down Expand Up @@ -87,6 +92,9 @@ def __init__(self):
self.stream = sd.InputStream(callback=self.ListenToMic)
self.stream.start()

def ChangeInput(self):
1+1

def Debug(self):
self.PlayTone()

Expand Down

0 comments on commit a2f9c8f

Please sign in to comment.