As with volume, only support fixed playback rates and so just expose it as an f64/Fixed.
Usage:
commands.spawn(
AudioFileBundle {
source,
settings: AudioFileSettings {
loop_region,
volume,
playback_rate: 0.25, // play at 25% of the usual speed
..default()
},
..default()
},
);
I decided not to update or add an example because the audio_control example already adjusts playback rate per frame and this new feature is just for setting an initial starting playback rate so it's not really that interesting.
Fixes #20
Description
As with
volume
, only support fixed playback rates and so just expose it as an f64/Fixed
.Usage:
I decided not to update or add an example because the
audio_control
example already adjusts playback rate per frame and this new feature is just for setting an initial starting playback rate so it's not really that interesting.