//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
|
||||
|
||||
@@ -124,7 +124,7 @@ class GQRXHandler(threading.Thread):
|
||||
|
||||
while not self.tel_conn:
|
||||
self.create_telnet_connection()
|
||||
sleep(.5)
|
||||
sleep(2)
|
||||
self.logger.debug(f"Waiting for GQRX to start")
|
||||
|
||||
self.GQRX_Started = True
|
||||
|
||||
Reference in New Issue
Block a user