//WIP V3
Bot Changes - Increased loop delay when waiting for GQRX to start Noisegate Change - Display whether the noisegate is active or not in the logs
This commit is contained in:
@@ -167,7 +167,10 @@ class NoiseGateStream(discord.AudioSource):
|
||||
buffer_decibel = 20 * math.log10(buffer_rms)
|
||||
|
||||
if self.process_set_count % 10 == 0:
|
||||
LOGGER.debug(f"{buffer_decibel} db")
|
||||
if buffer_decibel >= self.stream.THRESHOLD:
|
||||
LOGGER.debug(f"[Noisegate Open] {buffer_decibel} db")
|
||||
else:
|
||||
LOGGER.debug(f"[Noisegate Closed] {buffer_decibel} db")
|
||||
|
||||
if buffer_decibel >= self.stream.THRESHOLD:
|
||||
self.NG_fadeout_count = self.NG_fadeout
|
||||
|
||||
Reference in New Issue
Block a user