Skip to content

Commit deeebbe

Browse files
committed
Fixes feature gated extensions
1 parent 2fa9f47 commit deeebbe

1 file changed

Lines changed: 6 additions & 22 deletions

File tree

crates/bevy_audio/src/audio_source.rs

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -58,33 +58,17 @@ impl AssetLoader for AudioLoader {
5858

5959
fn extensions(&self) -> &[&str] {
6060
&[
61-
#[cfg(any(feature = "mp3", feature = "symphonia-mp3", feature = "symphonia-all"))]
61+
#[cfg(any(feature = "mp3", feature = "fallback-mp3", feature = "audio-all"))]
6262
"mp3",
63-
#[cfg(any(
64-
feature = "flac",
65-
feature = "symphonia-flac",
66-
feature = "symphonia-all"
67-
))]
63+
#[cfg(any(feature = "flac", feature = "fallback-flac", feature = "audio-all"))]
6864
"flac",
69-
#[cfg(any(feature = "wav", feature = "symphonia-wav", feature = "symphonia-all"))]
65+
#[cfg(any(feature = "wav", feature = "fallback-wav", feature = "audio-all"))]
7066
"wav",
71-
#[cfg(any(
72-
feature = "vorbis",
73-
feature = "symphonia-vorbis",
74-
feature = "symphonia-all"
75-
))]
67+
#[cfg(any(feature = "vorbis", feature = "fallback-vorbis", feature = "audio-all"))]
7668
"oga",
77-
#[cfg(any(
78-
feature = "vorbis",
79-
feature = "symphonia-vorbis",
80-
feature = "symphonia-all"
81-
))]
69+
#[cfg(any(feature = "vorbis", feature = "fallback-vorbis", feature = "audio-all"))]
8270
"ogg",
83-
#[cfg(any(
84-
feature = "vorbis",
85-
feature = "symphonia-vorbis",
86-
feature = "symphonia-all"
87-
))]
71+
#[cfg(any(feature = "vorbis", feature = "fallback-vorbis", feature = "audio-all"))]
8872
"spx",
8973
]
9074
}

0 commit comments

Comments
 (0)