Add symphonia-vorbis feature to use symphonia's vorbis support instead

This commit is contained in:
est31 2022-01-25 02:19:56 +01:00
parent 9ba6836e37
commit 9436db8e2b
2 changed files with 4 additions and 3 deletions

View file

@ -26,10 +26,11 @@ wav = ["hound"]
mp3 = ["minimp3"]
wasm-bindgen = ["cpal/wasm-bindgen"]
symphonia-aac = ["symphonia/aac"]
symphonia-all = ["symphonia-aac", "symphonia-flac", "symphonia-isomp4", "symphonia-mp3", "symphonia-wav"]
symphonia-all = ["symphonia-aac", "symphonia-flac", "symphonia-isomp4", "symphonia-mp3", "symphonia-vorbis", "symphonia-wav"]
symphonia-flac = ["symphonia/flac"]
symphonia-isomp4 = ["symphonia/isomp4"]
symphonia-mp3 = ["symphonia/mp3"]
symphonia-vorbis = ["symphonia/vorbis"]
symphonia-wav = ["symphonia/wav", "symphonia/pcm"]
[dev-dependencies]
@ -37,4 +38,4 @@ quickcheck = "0.9.2"
[[example]]
name = "music_m4a"
required-features = ["symphonia-isomp4", "symphonia-aac"]
required-features = ["symphonia-isomp4", "symphonia-aac"]

View file

@ -81,7 +81,7 @@ where
}
};
#[cfg(feature = "vorbis")]
#[cfg(all(feature = "vorbis", not(feature = "symphonia-vorbis")))]
let data = match vorbis::VorbisDecoder::new(data) {
Err(data) => data,
Ok(decoder) => {