mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 08:41:34 +11:00
Calculate panning correctly
This commit is contained in:
parent
d28b885e29
commit
e88eb16c62
|
@ -88,7 +88,7 @@ impl MixerBuffer {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
let right_amount = (channel.panning - 1) / 2;
|
let right_amount = (channel.panning + 1) / 2;
|
||||||
let left_amount = -right_amount + 1;
|
let left_amount = -right_amount + 1;
|
||||||
|
|
||||||
for i in 0..SOUND_BUFFER_SIZE {
|
for i in 0..SOUND_BUFFER_SIZE {
|
||||||
|
|
Loading…
Reference in a new issue