Skip to content

Fix MP4 Audio Playback Failure in Bevy 0.19.0#24879

Open
nyfair wants to merge 1 commit into
bevyengine:mainfrom
nyfair:main
Open

Fix MP4 Audio Playback Failure in Bevy 0.19.0#24879
nyfair wants to merge 1 commit into
bevyengine:mainfrom
nyfair:main

Conversation

@nyfair

@nyfair nyfair commented Jul 5, 2026

Copy link
Copy Markdown

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
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-Needs-Review Needs reviewer attention (from anyone!) to move forward

Projects

Status: Needs SME Triage

Development

Successfully merging this pull request may close these issues.

Failed to Play mp4 Audio File in Bevy 0.19.0

3 participants