We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 633f93a commit d1c7c15Copy full SHA for d1c7c15
1 file changed
livekit-rtc/livekit/rtc/audio_resampler.py
@@ -94,6 +94,8 @@ def push(self, data: bytearray | AudioFrame) -> list[AudioFrame]:
94
Exception: If there is an error during resampling.
95
"""
96
bdata = data if isinstance(data, bytearray) else data.data.cast("b")
97
+ if not bdata:
98
+ return []
99
100
req = proto_ffi.FfiRequest()
101
req.push_sox_resampler.resampler_handle = self._ffi_handle.handle
0 commit comments