Skip to content

new audio backend API#107

Merged
BillyDM merged 4 commits into
mainfrom
backend_api
Mar 11, 2026
Merged

new audio backend API#107
BillyDM merged 4 commits into
mainfrom
backend_api

Conversation

@BillyDM

@BillyDM BillyDM commented Mar 7, 2026

Copy link
Copy Markdown
Owner

This PR removes the clunky AudioBackend trait.

The only small catch is that the user must make sure that the CpalStream is dropped before the FirewheelContext is dropped. But this is a worthwhile tradeoff IMO.

I also realized that the audio_clock methods in the context don't really make sense when the scheduled_events feature is disabled, so I went ahead and feature-gated those methods too.

@BillyDM

BillyDM commented Mar 11, 2026

Copy link
Copy Markdown
Owner Author

I managed to remove the drop ordering requirement! As a bonus, you can now deactivate a Firewheel context without manually dropping the FirewheelProcessor.

@BillyDM BillyDM merged commit f25b53a into main Mar 11, 2026
3 checks passed
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