Skip to content

Commit 9ef8982

Browse files
committed
Removes minimp3 usage and fixes fallback features
1 parent b31c3a2 commit 9ef8982

5 files changed

Lines changed: 7 additions & 13 deletions

File tree

Cargo.toml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -489,16 +489,13 @@ zstd_rust = ["bevy_internal/zstd_rust"]
489489
zstd_c = ["bevy_internal/zstd_c"]
490490

491491
# FLAC audio format support (through `claxon`)
492-
fallback-flac = ["bevy_internal/flac"]
492+
fallback-flac = ["bevy_internal/fallback-flac"]
493493

494-
# MP3 audio format support (through `minimp3`)
495-
fallback-mp3 = ["bevy_internal/mp3"]
496-
497-
# OGG/VORBIS audio format support (through `lewton`)
498-
fallback-vorbis = ["bevy_internal/vorbis"]
494+
# OGG/VORBIS audio format support (through `symphonia`)
495+
fallback-vorbis = ["bevy_internal/fallback-vorbis"]
499496

500497
# WAV audio format support (through `hound`)
501-
fallback-wav = ["bevy_internal/wav"]
498+
fallback-wav = ["bevy_internal/fallback-wav"]
502499

503500
# AAC audio format support (through `symphonia`)
504501
aac = ["bevy_internal/aac"]
@@ -515,7 +512,7 @@ mp4 = ["bevy_internal/mp4"]
515512
# MP3 audio format support (through `symphonia`)
516513
mp3 = ["bevy_internal/mp3"]
517514

518-
# OGG/VORBIS audio format support (through `symphonia`)
515+
# OGG/VORBIS audio format support (through `lewton`)
519516
vorbis = ["bevy_internal/vorbis"]
520517

521518
# WAV audio format support (through `symphonia`)

crates/bevy_audio/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ bevy_reflect = { path = "../bevy_reflect", version = "0.18.0-dev", default-featu
3838
] }
3939

4040
[features]
41-
fallback-mp3 = ["rodio/minimp3"]
4241
fallback-flac = ["rodio/claxon"]
4342
fallback-wav = ["rodio/hound"]
4443
# TODO: Swap fallback-vorbis and vorbis features

crates/bevy_audio/src/audio_source.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl AsRef<[u8]> for AudioSource {
3131
/// This asset loader supports different audio formats based on the enable Bevy features.
3232
/// The feature `bevy/vorbis` enables loading from `.ogg` files and is enabled by default.
3333
/// Other file extensions can be loaded from with additional features:
34-
/// `.mp3` with `bevy/mp3` or `bevy/fallback-mp3`
34+
/// `.mp3` with `bevy/mp3`
3535
/// `.flac` with `bevy/flac` or `bevy/fallback-flac`
3636
/// `.wav` with `bevy/wav` or `bevy/fallback-wav`
3737
/// The `bevy/audio-all` feature will enable all file extensions.
@@ -58,7 +58,7 @@ impl AssetLoader for AudioLoader {
5858

5959
fn extensions(&self) -> &[&str] {
6060
&[
61-
#[cfg(any(feature = "mp3", feature = "fallback-mp3", feature = "audio-all"))]
61+
#[cfg(any(feature = "mp3", feature = "audio-all"))]
6262
"mp3",
6363
#[cfg(any(feature = "flac", feature = "fallback-flac", feature = "audio-all"))]
6464
"flac",

crates/bevy_internal/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ wav = ["bevy_audio/wav"]
9696
aac = ["bevy_audio/aac"]
9797
audio-all = ["bevy_audio/audio-all"]
9898
fallback-flac = ["bevy_audio/fallback-flac"]
99-
fallback-mp3 = ["bevy_audio/fallback-mp3"]
10099
fallback-vorbis = ["bevy_audio/fallback-vorbis"]
101100
fallback-wav = ["bevy_audio/fallback-wav"]
102101

docs/cargo_features.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ This is the complete `bevy` cargo feature list, without "profiles" or "collectio
123123
|experimental_pbr_pcss|Enable support for PCSS, at the risk of blowing past the global, per-shader sampler limit on older/lower-end GPUs|
124124
|exr|EXR image format support|
125125
|fallback-flac|FLAC audio format support (through `claxon`)|
126-
|fallback-mp3|MP3 audio format support (through `minimp3`)|
127126
|fallback-vorbis|OGG/VORBIS audio format support (through `lewton`)|
128127
|fallback-wav|WAV audio format support (through `hound`)|
129128
|ff|Farbfeld image format support|

0 commit comments

Comments
 (0)