mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 00:01:34 +11:00
Should only decrease the volume after the first tick
This commit is contained in:
parent
652173c08e
commit
8b296794fe
|
@ -196,11 +196,13 @@ impl TrackerChannel {
|
|||
self.volume = *volume;
|
||||
}
|
||||
PatternEffect::VolumeSlide(amount) => {
|
||||
self.volume += *amount;
|
||||
if self.volume < 0.into() {
|
||||
self.volume = 0.into();
|
||||
if tick != 0 {
|
||||
self.volume += *amount;
|
||||
if self.volume < 0.into() {
|
||||
self.volume = 0.into();
|
||||
}
|
||||
channel.volume(self.volume);
|
||||
}
|
||||
channel.volume(self.volume);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue