mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
attempt fixing audio input overflow
This commit is contained in:
parent
d5eea3c99c
commit
d48f457fd5
1 changed files with 2 additions and 2 deletions
|
@ -127,8 +127,8 @@ class Demodulator():
|
|||
|
||||
def sd_input_audio_callback(self, indata: np.ndarray, frames: int, time, status) -> None:
|
||||
if status:
|
||||
self.log.warning("[AUDIO STATUS]", status=status)
|
||||
|
||||
self.log.warning("[AUDIO STATUS]", status=status, time=time, frames=frames, indata=indata)
|
||||
return
|
||||
audio_48k = np.frombuffer(indata, dtype=np.int16)
|
||||
audio_8k = self.resampler.resample48_to_8(audio_48k)
|
||||
|
||||
|
|
Loading…
Reference in a new issue