Expand description
A sink that automatically follows changes to the system’s default audio output device.
This crate provides DefaultDeviceSink, a wrapper around
rodio::Sink that recreates the underlying stream and sink when the
default output device changes. It also exposes helper functions for
working with the selected device.
Structs§
- Default
Device Sink DefaultDeviceSinkwraps arodio::Sinkand recreates the underlying stream and sink if the system default output device changes.
Statics§
- SELECTED_
OUTPUT_ DEVICE - Globally selected output device name.
Nonemeans use the system default.
Functions§
- default_
device_ name - Returns the name of the current default output device, if any.
- get_
output_ device - Returns the currently selected output device.
Nonemeans the system default. - list_
output_ devices - Returns a list of available output device names.
- set_
output_ device - Set the globally selected output device. Pass
Noneto use the system default.