Skip to content

refactor: make buffer_size() return Result#1142

Merged
roderickvd merged 6 commits intomasterfrom
feat/buffer-size-always-some
Apr 5, 2026
Merged

refactor: make buffer_size() return Result#1142
roderickvd merged 6 commits intomasterfrom
feat/buffer-size-always-some

Conversation

@roderickvd
Copy link
Copy Markdown
Member

@roderickvd roderickvd commented Apr 2, 2026

StreamTrait::buffer_size() now returns Result<FrameCount, StreamError> instead of Option<FrameCount>. All host return Ok, even before the first callback invocation, unless they can't query it anymore, such as in the case of a device having been disconnected since the creation of the stream.

Also implements BufferSize::Fixed support for AudioWorklet.

This comment has been minimized.

@roderickvd roderickvd changed the title feat: always return buffer_size() refactor: make buffer_size() return Result Apr 4, 2026
@roderickvd roderickvd force-pushed the feat/buffer-size-always-some branch from 6efb24c to 5d154f4 Compare April 5, 2026 11:02
@roderickvd roderickvd merged commit 55589ec into master Apr 5, 2026
32 checks passed
@roderickvd roderickvd deleted the feat/buffer-size-always-some branch April 5, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants