Updated variable names to be more accurate

This commit is contained in:
Logan Cusano
2022-02-12 20:01:08 -05:00
parent 18ceb0074e
commit e1ca0bfd99

View File

@@ -25,11 +25,11 @@ class PCMStream:
# convert to pcm format
return bytes(data)
def change_device(self, num):
def change_device(self, device_ID):
self.clean_up()
self.stream = sd.RawInputStream(device=num)
noisegate_obj.init_stream(num, self.voice_connection, self)
self.stream = sd.RawInputStream(device=device_ID)
noisegate_obj.init_stream(device_ID, self.voice_connection, self)
self.stream.start()
noisegate_obj.start()