@@ -5,9 +5,29 @@ guide are very welcome!
55The list below only contains required code changes. For a complete list of
66changes and new features, see [ CHANGELOG.md] ( CHANGELOG.md ) .
77
8- # rodio 0.21.1 to current GitHub version
8+ # rodio 0.22 to current github version
9+ Nothing yet!
910
10- No changes are required.
11+ # rodio 0.21.1 to 0.22
12+ - _ Sink_ terms are replaced with _ Player_ and _ Stream_ terms replaced
13+ with _ Sink_ . This is a simple rename, functionality is identical.
14+
15+ We recommend a search replace for the following terms, in no particular order:
16+ - ` OutputStream ` is now ` MixerDeviceSink ` (in anticipation of future
17+ ` QueueDeviceSink ` )
18+ - ` OutputStreamBuilder ` is now ` DeviceSinkBuilder `
19+ - ` open_stream_or_fallback ` is now ` open_sink_or_fallback `
20+ - ` open_default_stream ` is now ` open_default_sink `
21+ - ` open_stream ` is now ` open_mixer ` (in anticipation of future ` open_queue ` )
22+ - ` Sink ` is now ` Player `
23+ - ` SpatialSink ` is now ` SpatialPlayer `
24+ - ` StreamError ` is now ` OsSinkError `
25+ - ` output_to_wav ` renamed to ` wav_to_file ` and now takes ownership of the ` Source ` .
26+ - ` SamplesBuffer::new ` now takes ChannelCount and SampleRate as arguments. Use
27+ the ` nz! ` macro to easily create those from literals like this:
28+ ` SamplesBuffer::new(nz!(1), nz!(44100)) `
29+ or construct them at runtime like this:
30+ ` SamplesBuffer::new(NonZero::new(channel_count)?, NonZero::new(sample_rate)?) ` ;
1131
1232# rodio 0.20 or earlier to 0.21.1
1333
0 commit comments