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:
Logan Cusano
2022-04-09 02:36:48 -04:00
parent 458ab5be95
commit a483f83b4b
2 changed files with 5 additions and 2 deletions

View File

@@ -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