Should only decrease the volume after the first tick

This commit is contained in:
Gwilym Inzani 2023-07-17 08:47:20 +01:00
parent 652173c08e
commit 8b296794fe

View file

@ -196,6 +196,7 @@ impl TrackerChannel {
self.volume = *volume;
}
PatternEffect::VolumeSlide(amount) => {
if tick != 0 {
self.volume += *amount;
if self.volume < 0.into() {
self.volume = 0.into();
@ -205,6 +206,7 @@ impl TrackerChannel {
}
}
}
}
}
#[cfg(test)]