From dbff05477282c5ddd044db5e28ec62bd639236b6 Mon Sep 17 00:00:00 2001 From: Raivis Dejus Date: Sat, 7 Mar 2026 06:42:13 +0200 Subject: [PATCH] Fix for errors in test --- buzz/recording.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/buzz/recording.py b/buzz/recording.py index 37402aec..158f6e5c 100644 --- a/buzz/recording.py +++ b/buzz/recording.py @@ -22,7 +22,7 @@ class RecordingAmplitudeListener(QObject): self.input_device_index = input_device_index self.buffer = np.ndarray([], dtype=np.float32) self.accumulation_size = 0 - self._active = False + self._active = True def start_recording(self): try: @@ -34,7 +34,6 @@ class RecordingAmplitudeListener(QObject): ) self.stream.start() self.accumulation_size = int(self.stream.samplerate * self.ACCUMULATION_SECONDS) - self._active = True except Exception as e: self.stop_recording() logging.exception("Failed to start audio stream on device %s: %s", self.input_device_index, e)