3 Commits

Author SHA1 Message Date
Logan Cusano
458d8d12a4 Merge branch 'V3_Better_Logging' of git.vpn.cusano.net:Discord_Bot_Gang/Discord-Radio-Bot into V3_Better_Logging 2022-03-28 01:58:23 -04:00
Logan Cusano
319e92b897 New logging 2022-03-28 05:56:20 +00:00
Logan Cusano
c741288b87 New logging 2022-03-28 01:27:37 -04:00

View File

@@ -132,7 +132,7 @@ class NoiseGateStream(discord.AudioSource):
def __init__(self, _stream):
super(NoiseGateStream, self).__init__()
self.stream = _stream # The actual audio stream object
self.NG_fadeout = 240/20 # Fadeout value used to hold the noisegate after de-triggering
self.NG_fadeout = 480/20 # Fadeout value used to hold the noisegate after de-triggering
self.NG_fadeout_count = 0 # A count set when the noisegate is triggered and was de-triggered
self.process_set_count = 0 # Counts how many processes have been made in order to limit the prints
@@ -159,8 +159,6 @@ class NoiseGateStream(discord.AudioSource):
LOGGER.debug(f"Frames in fadeout remaining: {self.NG_fadeout_count}")
self.process_set_count += 1
if curr_buffer:
if self.NG_fadeout_count == 0:
voice_connection.stop()
return bytes(curr_buffer)
except OSError as e: