Skip to content

feat: bound the queue of pushed audio - #475

Merged
devopvoid merged 1 commit into
mainfrom
feat/custom-audio-queue-limit
Oct 28, 2026
Merged

devopvoid merged 1 commit into
mainfrom
feat/custom-audio-queue-limit

Conversation

@devopvoid

Copy link
Copy Markdown
Owner

CustomAudio queued pushed PCM without limit, so a producer faster than real time grew memory and delay without end.

The queue now holds at most 10 s by default; a push beyond that fails with an AudioQueueFullException and keeps none of its audio. queueLimit(Duration, AudioOverflow) sets the limit and the overflow: REJECT for audio that must arrive whole, DROP_OLDEST for live audio.

CustomAudio holds at most 10 s by default. queueLimit sets the limit and whether a push beyond it is rejected or drops the oldest audio.
@devopvoid
devopvoid merged commit 1eb8385 into main Oct 28, 2026
25 checks passed
@devopvoid
devopvoid deleted the feat/custom-audio-queue-limit branch October 29, 2026 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant