Skip to content

rename Output to AvailableOutput + try_from device_id#867

Open
yara-blue wants to merge 1 commit intomasterfrom
try_from-device_id
Open

rename Output to AvailableOutput + try_from device_id#867
yara-blue wants to merge 1 commit intomasterfrom
try_from-device_id

Conversation

@yara-blue
Copy link
Member

We got some feedback on the new experimental Speakers (the next sink) API that was already merged into Rodio under the experimental flag: RustAudio/rodio-experiments#1 (comment)

In short, we need a way to serialize/de-serialize devices (abstracted as AvailableOutput). I played around a bit with yet another wrapper but since DeviceId is stable and Rodio is married happily to CPAL that ended up not making too much sense. We can always revisit that later (it would be nice for end users not to need to know anything about CPAL to use Rodio.

For now you can get a DeviceId from an AvailableOutput and try_from an DeviceId into a AvailableOutput.

@yara-blue yara-blue force-pushed the try_from-device_id branch from b341fd7 to ed53c37 Compare March 21, 2026 21:54
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