Skip to content

Commit

Permalink
Expose rodio's Source and Sample traits in bevy_audio (bevyengine#6374)
Browse files Browse the repository at this point in the history
# Objective

- Fixes bevyengine#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.
  • Loading branch information
elbertronnie authored and ItsDoot committed Feb 1, 2023
1 parent 473b375 commit c6fc468
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/bevy_audio/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c6fc468

Please sign in to comment.