Noisegate V2 #8

Merged
logan merged 47 commits from NoiseGateV2 into master 2022-03-28 00:13:08 -04:00
Showing only changes of commit b534e2b731 - Show all commits

View File

@@ -7,11 +7,11 @@ from threading import Thread
sound_buffer = []
class AudioSteam(Thread):
class AudioStream(Thread):
def __init__(self, _channels: int = 1, _sample_rate: int = 48000, _frames_per_buffer: int = 2048,
_input_device_index: int = None, _output_device_index: int = None, _input: bool = True,
_output: bool = True):
super(AudioSteam, self).__init__()
super(AudioStream, self).__init__()
self.paInstance_kwargs = {
'format': pyaudio.paFloat32,
'channels': _channels,
@@ -91,7 +91,7 @@ class AudioSteam(Thread):
self.paInstance.get_device_info_by_host_api_device_index(0, i).get('name'))
class NoiseGate(AudioSteam):
class NoiseGate(AudioStream):
def __init__(self, **kwargs):
super().__init__(**kwargs)