What problem does this solve or what need does it fill?
In bevy_audio, Decodable::Decoder requires rodio::source::Source and Decodable::DecoderItem requires rodio::Sample, which in turn, requires cpal::Sample.
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.
What problem does this solve or what need does it fill?
In
bevy_audio,Decodable::Decoderrequiresrodio::source::SourceandDecodable::DecoderItemrequiresrodio::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?