This guide will help you update your code when upgrading from older versions of rodio.
- If you use disable the rodio features with
default_features = false
inCargo.toml
you need to add a new featureplayback
.
- Source had a required method
current_frame_len
. In the latest version of rodio frame has been renamed to span. You will need to change every occurrence ofcurrent_frame_len
tocurrent_span_len
.
- The outputstream is now more configurable. Where you used
OutputStream::try_default()
you have a choice:- (recommended) Get an error when the default stream could not be opened:
OutputStreamBuilder::open_default_stream()?
- Stay close to the old behavior using:
OutputStreamBuilder::open_stream_or_fallback()
, which tries to open the default (audio) stream. If that fails it tries all other combinations of device and settings. The old behavior was only trying all settings of the default device.
- (recommended) Get an error when the default stream could not be opened: