big-school-62939
04/15/2026, 7:44 PMtall-airline-16756
04/15/2026, 7:44 PMtall-airline-16756
04/15/2026, 7:45 PMqueue_size_frames from the small default (usually ~10) to something larger (for example 50):
audio_stream = rtc.AudioStream.from_track(
track=track,
sample_rate=48000,
num_channels=1,
queue_size_frames=50
)
• Make your audio processing loop consume frames without blocking (process frames immediately, avoid long synchronous ops inside the loop).
• If you accept variable memory usage and latency, set queue_size_frames=0 to use an unbounded queue (caution: may grow memory).
If you want, tell me:
• which SDK/language you're using,
• your current queue_size_frames (if set),
• and a short snippet of how you process frames
— and I’ll suggest specific values or code changes.
Sources: libwebrtc/src/native/audio_stream.rs, with interactive elements