mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-23 23:56:34 +11:00
Calculate the panning differently to ensure left and right ears get same amounts
This commit is contained in:
parent
290d546248
commit
90551b0ba1
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ impl MixerBuffer {
|
||||||
}
|
}
|
||||||
|
|
||||||
let right_amount = ((channel.panning + 1) / 2) * channel.volume;
|
let right_amount = ((channel.panning + 1) / 2) * channel.volume;
|
||||||
let left_amount = (-right_amount + 1) * channel.volume;
|
let left_amount = ((-channel.panning + 1) / 2) * channel.volume;
|
||||||
|
|
||||||
if channel.pos + channel.playback_speed * SOUND_BUFFER_SIZE >= channel.data.len().into()
|
if channel.pos + channel.playback_speed * SOUND_BUFFER_SIZE >= channel.data.len().into()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue