v0.6.0 beta 6
Pre-release
Pre-release
- Moved the functionality from
kira-cpal
andkira-loaders
into the mainkira
crate.kira-cpal
andkira-loaders
are now unneeded and deprecated.CpalBackend
fromkira-cpal
is now available askira::manager::backend::cpal::CpalBackend
kira_loaders::load
andkira_loaders::load_from_cursor
are nowStaticSoundData::from_file
andStaticSoundData::from_cursor
kira_loaders::stream
andkira_loaders::stream_from_cursor
are nowStreamingSoundData::from_file
andStreamingSoundData::from_cursor
- Added
Renderer::on_change_sample_rate
, which theBackend
should call if the audio sample rate changes - Added
Effect::on_change_sample_rate
, which is called when the audio sample rate changes - Changes to the
Backend
trait:- Added the associated type
Backend::settings
and the methodBackend::setup
, which is used for creatingBackend
s (basically anew
function, but required by theBackend
trait) - Renamed
Backend::init
toBackend::start
- Removed
Backend::sample_rate
- Removed
UnusedResourceCollector
from the public API.Backend
s are no longer responsible for dropping unused resources.
- Added the associated type
- Updated
MockBackend
to the new API - Removed the
backend
argument toAudioManager::new
- Restructured
AudioManagerSettings
- The cpal backend will now do its best to gracefully handle device disconnection and sample rate changes
- The cpal backend now works in wasm environments