v0.7.0
This is a bugfix release, but unfortunately one of the bugfixes did require a breaking change. Fortunately, this breaking change only affects people who have created their own Sound
or Effect
implementations, which is not the most common use case.
Fixes:
- Fix a panic when starting a
StaticSound
with a start position later than the end of the sound - Fix negative start positions getting rounded up to
0.0
. Now sounds played with negative start positions will output silence until the position reaches0.0
, at which point normal playback will resume. This is the behavior from versions 0.5.x and prior, and it was not meant to change in 0.6.x. - Streaming sounds will no longer stop after they encounter an error, allowing them to recover from non-fatal errors and continue playback
- Fix a bug where if a sound was played with the start time set to a clock time, and the clock time had already passed by the time the sound was played, it would not start until the next tick of that clock
Breaking changes (only for Sound
and Effect
implementations):
- Removed the
on_clock_tick
callback fromSound
,Effect
, andTweener
- Instead,
Sound::process
,Effect::process
, andTweener::update
receive a&ClockInfoProvider
argument.ClockInfoProvider
can report the current state of any active clock.