Updated variable names to be more accurate
This commit is contained in:
6
sound.py
6
sound.py
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user