mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-23 07:36:33 +11:00
Cargo fmt
This commit is contained in:
parent
871d90c889
commit
25cca44b6b
1 changed files with 2 additions and 1 deletions
|
@ -136,7 +136,8 @@ impl MixerBuffer {
|
|||
let right_amount = ((channel.panning + 1) / 2) * channel.volume;
|
||||
let left_amount = ((-channel.panning + 1) / 2) * channel.volume;
|
||||
|
||||
if (channel.pos + channel.playback_speed * SOUND_BUFFER_SIZE).floor() >= channel.data.len()
|
||||
if (channel.pos + channel.playback_speed * SOUND_BUFFER_SIZE).floor()
|
||||
>= channel.data.len()
|
||||
{
|
||||
// TODO: This should probably play what's left rather than skip the last bit
|
||||
if channel.should_loop {
|
||||
|
|
Loading…
Add table
Reference in a new issue