mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
If volume is 0, don't actually play anything
This commit is contained in:
parent
6ebe08e528
commit
8009ffea09
|
@ -446,6 +446,7 @@ impl MixerBuffer {
|
|||
}
|
||||
}
|
||||
|
||||
if channel.volume != 0.into() {
|
||||
if channel.is_stereo {
|
||||
unsafe {
|
||||
agb_rs__mixer_add_stereo(
|
||||
|
@ -468,6 +469,7 @@ impl MixerBuffer {
|
|||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
channel.pos += playback_speed * self.frequency.buffer_size();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue