Skip to content

Commit

Permalink
Expose rodio's Source and Sample traits in bevy_audio (#6374)
Browse files Browse the repository at this point in the history
# 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.
  • Loading branch information
elbertronnie committed Oct 27, 2022
1 parent 894334b commit 0934abc
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 0934abc

Please sign in to comment.