You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
harudagondi opened this issue
Sep 4, 2022
· 0 comments
Labels
A-AudioSounds playback and modificationC-FeatureA new feature, making something new possibleD-TrivialNice and easy! A great choice to get started with Bevy
Therefore, users who want to define their own Decodable types must manually import rodio and cpal.
What solution would you like?
pub use rodio::source::Source, rodio::Sample, and cpal::Sample.
What alternative(s) have you considered?
Just make the users manually import the required dependencies. This will cause problems when the user wants to use a different version of rodio and cpal for other purposes.
The text was updated successfully, but these errors were encountered:
# Objective
- Fixesbevyengine#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.
ItsDoot
pushed a commit
to ItsDoot/bevy
that referenced
this issue
Feb 1, 2023
# Objective
- Fixesbevyengine#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.
A-AudioSounds playback and modificationC-FeatureA new feature, making something new possibleD-TrivialNice and easy! A great choice to get started with Bevy
What problem does this solve or what need does it fill?
In
bevy_audio
,Decodable::Decoder
requiresrodio::source::Source
andDecodable::DecoderItem
requiresrodio::Sample
, which in turn, requirescpal::Sample
.Therefore, users who want to define their own Decodable types must manually import rodio and cpal.
What solution would you like?
rodio::source::Source
,rodio::Sample
, andcpal::Sample
.What alternative(s) have you considered?
The text was updated successfully, but these errors were encountered: