Skip to content

Fix MP4 Audio Playback Failure in Bevy 0.19.0#24879

Merged
alice-i-cecile merged 1 commit into
bevyengine:mainfrom
nyfair:main
Jul 6, 2026
Merged

Fix MP4 Audio Playback Failure in Bevy 0.19.0#24879
alice-i-cecile merged 1 commit into
bevyengine:mainfrom
nyfair:main

Conversation

@nyfair

@nyfair nyfair commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Objective

Fix #24878

Solution

Refactor audio decoder method to use rodio builder pattern

Testing

use bevy::prelude::*;

fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .add_systems(Startup, setup)
        .run();
}

fn setup(asset_server: Res<AssetServer>, mut commands: Commands) {
    commands.spawn(AudioPlayer::new(
        asset_server.load("something.mp4"),
    ));
}

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Welcome, new contributor!

Please make sure you've read our contributing guide, as well as our policy regarding AI usage, and we look forward to reviewing your pull request shortly ✨

@kfc35 kfc35 added C-Bug An unexpected or incorrect behavior A-Audio Sounds playback and modification S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Jul 5, 2026
@github-project-automation github-project-automation Bot moved this to Needs SME Triage in Audio Jul 5, 2026
@alice-i-cecile alice-i-cecile added the D-Trivial Nice and easy! A great choice to get started with Bevy label Jul 5, 2026
@alice-i-cecile alice-i-cecile added D-Straightforward Simple bug fixes and API improvements, docs, test and examples and removed D-Trivial Nice and easy! A great choice to get started with Bevy labels Jul 5, 2026
@alice-i-cecile alice-i-cecile added this to the 0.19.1 milestone Jul 5, 2026
@alice-i-cecile alice-i-cecile added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Jul 6, 2026
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Jul 6, 2026
Merged via the queue into bevyengine:main with commit 90a0c2f Jul 6, 2026
51 checks passed
@github-project-automation github-project-automation Bot moved this from Needs SME Triage to Done in Audio Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Audio Sounds playback and modification C-Bug An unexpected or incorrect behavior D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Failed to Play mp4 Audio File in Bevy 0.19.0

4 participants