Expose rodio's Source and Sample traits in bevy_audio (#6374)
# Objective - Fixes #5876 . ## Solution - added pub use statements to re-export the following traits in bevy_audio: rodio::source::Source, rodio::Sample, rodio::cpal::Sample. - rodio::cpal::Sample was re-exported as CpalSample to avoid naming conflict with rodio::Sample.
This commit is contained in:
parent
894334b51e
commit
0934abc6bb
@ -35,6 +35,9 @@ pub mod prelude {
|
||||
pub use audio::*;
|
||||
pub use audio_output::*;
|
||||
pub use audio_source::*;
|
||||
pub use rodio::cpal::Sample as CpalSample;
|
||||
pub use rodio::source::Source;
|
||||
pub use rodio::Sample;
|
||||
|
||||
use bevy_app::prelude::*;
|
||||
use bevy_asset::AddAsset;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user