Skip to content

Comments

Update Rust crate rodio to 0.22.0#1

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/rodio-0.x
Open

Update Rust crate rodio to 0.22.0#1
renovate[bot] wants to merge 1 commit intomainfrom
renovate/rodio-0.x

Conversation

@renovate
Copy link

@renovate renovate bot commented Jul 13, 2025

This PR contains the following updates:

Package Type Update Change
rodio dependencies minor 0.20.10.22.0

Release Notes

RustAudio/rodio (rodio)

v0.22.1

Compare Source

Fixed
  • docs.rs could not build the documentation

v0.22.0

Compare Source

v0.21.1

Compare Source

Changed
  • Upgrade cpal to v0.16.
  • Update dependencies.
Fixed
  • Fix clippy warnings with Source::white and Source::pink functions.

v0.21.0

Compare Source

Added
  • Added Source::amplify_decibel() method to control volume by decibels.
  • Added Source::amplify_normalized() method to perceptually modify volume.
  • Adds a function to write a Source to a wav file, enable the wav_output feature and see
    output_to_wav.
  • Output audio stream buffer size can now be adjusted.
  • Sources for directly generating square waves, triangle waves, square waves, and
    sawtooths have been added.
  • An interface for defining SignalGenerator patterns with an fn, see
    GeneratorFunction.
  • Minimal builds without cpal audio output are now supported.
    See README.md for instructions. (#​349)
  • Added Sample::is_zero() method for checking zero samples.
  • Added DecoderBuilder for improved configuration.
  • Added Pausable::is_paused() method for checking if source is paused.
  • Using Decoder::TryFrom for File now automatically wraps in BufReader and sets byte_len.
    TryFrom<Cursor<T>> and TryFrom<BufReader> are also supported.
  • Added Source::distortion() method to control distortion effect by gain and threshold.
  • Added OutputStream::config() method to access an OutputStream's OutputStreamConfig once
    an OutputStream has been built.
  • Added OutputStreamConfig::channel_count(), OutputStreamConfig::sample_rate(),
    OutputStreamConfig::buffer_size() and OutputStreamConfig::sample_format() getters to access
    an OutputStreamConfig's channel count, sample rate, buffer size and sample format values.
  • Added Source::limit() method for limiting the maximum amplitude of a source.
  • Added more noise generators: WhiteGaussian, WhiteTriangular, Blue, Brownian, Violet,
    and Velvet.
Changed
  • Breaking: OutputStreamBuilder should now be used to initialize an audio output stream.
  • Breaking: OutputStreamHandle removed, use OutputStream and OutputStream::mixer() instead.
  • Breaking: DynamicMixerController renamed to Mixer, DynamicMixer renamed to MixerSource.
  • Breaking: Sink::try_new renamed to connect_new and does not return error anymore.
    Sink::new_idle was renamed to new.
  • Breaking: symphonia::SeekError has a new variant AccurateSeekNotSupported
    and variants Retrying and Refining have been removed. Catching this error
    may allow a caller to retry in coarse seek mode.
  • Breaking: symphonia::SeekError has a new variant RandomAccessNotSupported. This error usually means that you are trying to seek backward without is_seekable or byte_len set: use Decoder::try_from or DecoderBuilder for that.
  • Breaking: In the Source trait, the method current_frame_len() was renamed to current_span_len().
  • Breaking: Decoder now outputs f32 samples.
  • Breaking: The term 'frame' was renamed to 'span' in the crate and documentation.
  • Breaking: LoopedDecoder now returns None if seeking fails during loop reset.
  • Breaking: ReadSeekSource::new() now takes Settings.
  • Breaking: Sources now use f32 samples. To convert to and from other types of samples use functions from dasp_sample crate. For example DaspSample::from_sample(sample).
  • Breaking: WhiteNoise and PinkNoise have been renamed to noise::WhiteUniform and
    noise::Pink.
  • Breaking: As optional features are now available: CAF and MKV containers, MP1/MP2 and ADPCM decoders. Previously, the ADPCM decoder was enabled when symphonia-wav was.
  • docs.rs will now document all features, including those that are not enabled by default.
  • OutputStreamConfig is now public.
  • OutputStream now prints when it is dropped, can be disabled with OutputStream::log_on_drop(false).
  • Update cpal to 0.16.
  • The default decoders have changed to Symphonia. The previous decoders are still available as optional features: use claxon for FLAC, lewton for Vorbis, and hound for WAV.
  • Support for decoding MP4 containers with AAC audio is now enabled by default.
Fixed
  • ChannelVolume no longer clips/overflows when converting from many channels to
    fewer.
  • Symphonia decoder total_duration incorrect value caused by conversion from Time to Duration.
  • An issue with SignalGenerator that caused it to create increasingly distorted waveforms
    over long run times has been corrected. (#​201)
  • WAV and FLAC decoder duration calculation now calculated once and handles very large files
    correctly.
  • Removed unwrap() calls in MP3, WAV, FLAC and Vorbis format detection for better error handling.
  • LoopedDecoder::size_hint now correctly indicates an infinite stream.
  • Symphonia decoder total_duration no longer returns None when it could
    return Some
  • Symphonia decoder for MP4 now seeks correctly (#​577).
  • White noise was not correctly uniformly distributed.
  • Pink noise was not correctly distributed on sampling rates other than 44100 Hz.
Deprecated
  • Deprecated Sample::zero_value() function in favor of Sample::ZERO_VALUE constant.
  • Deprecated white() and pink() methods in favor of noise::WhiteUniform::new() and noise::Pink::new().
Removed
  • Breaking: Removed Mp4Type enum in favor of using MIME type string "audio/mp4" for MP4 format detection with Decoder::new_mp4 (#​612).

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/rodio-0.x branch from 1c84450 to 46e5fcc Compare July 27, 2025 07:51
@renovate renovate bot force-pushed the renovate/rodio-0.x branch from 46e5fcc to 274965d Compare September 26, 2025 00:03
@renovate renovate bot force-pushed the renovate/rodio-0.x branch from 274965d to 17d023b Compare December 11, 2025 11:09
@renovate renovate bot force-pushed the renovate/rodio-0.x branch from 17d023b to 6ca1a36 Compare February 21, 2026 03:59
@renovate renovate bot changed the title Update Rust crate rodio to 0.21.0 Update Rust crate rodio to 0.22.0 Feb 21, 2026
@renovate renovate bot force-pushed the renovate/rodio-0.x branch from 6ca1a36 to a0c7212 Compare February 22, 2026 06: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.

0 participants