Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions livekit-rtc/livekit/rtc/audio_resampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ def push(self, data: bytearray | AudioFrame) -> list[AudioFrame]:
Exception: If there is an error during resampling.
"""
bdata = data if isinstance(data, bytearray) else data.data.cast("b")
if not bdata:
return []

req = proto_ffi.FfiRequest()
req.push_sox_resampler.resampler_handle = self._ffi_handle.handle
Expand Down
Loading