mirror of
https://github.com/RustAudio/rodio
synced 2024-11-10 06:04:16 +00:00
Add symphonia-vorbis feature to use symphonia's vorbis support instead
This commit is contained in:
parent
9ba6836e37
commit
9436db8e2b
2 changed files with 4 additions and 3 deletions
|
@ -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"]
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue