From 22d10c1eece950694ee6d9a4c2e8d6b5978de489 Mon Sep 17 00:00:00 2001 From: shijing xian Date: Tue, 24 Mar 2026 08:01:24 +0800 Subject: [PATCH] use unbounded buffer for audio_stream --- livekit-rtc/livekit/rtc/audio_stream.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/livekit-rtc/livekit/rtc/audio_stream.py b/livekit-rtc/livekit/rtc/audio_stream.py index 1217a50a..0f949d40 100644 --- a/livekit-rtc/livekit/rtc/audio_stream.py +++ b/livekit-rtc/livekit/rtc/audio_stream.py @@ -239,6 +239,7 @@ def _create_owned_stream(self) -> Any: new_audio_stream.track_handle = self._track._ffi_handle.handle new_audio_stream.sample_rate = self._sample_rate new_audio_stream.num_channels = self._num_channels + new_audio_stream.queue_size_frames = 0 if self._frame_size_ms: new_audio_stream.frame_size_ms = self._frame_size_ms new_audio_stream.type = proto_audio_frame.AudioStreamType.AUDIO_STREAM_NATIVE @@ -257,6 +258,7 @@ def _create_owned_stream_from_participant( audio_stream_from_participant.participant_handle = participant._ffi_handle.handle audio_stream_from_participant.sample_rate = self._sample_rate audio_stream_from_participant.num_channels = self._num_channels + audio_stream_from_participant.queue_size_frames = 0 audio_stream_from_participant.type = proto_audio_frame.AudioStreamType.AUDIO_STREAM_NATIVE audio_stream_from_participant.track_source = track_source if self._frame_size_ms: