Missing minus sign

This commit is contained in:
Gwilym Inzani 2024-07-10 09:34:58 +01:00
parent 2fa574684c
commit a6fca49f7b

View file

@ -28,7 +28,7 @@ impl Mixer {
for channel in channels { for channel in channels {
let right_amount = ((channel.panning + 1) / 2) * channel.volume; let right_amount = ((channel.panning + 1) / 2) * channel.volume;
let left_amount = ((channel.panning + 1) / 2) * channel.volume; let left_amount = ((-channel.panning + 1) / 2) * channel.volume;
let right_amount: Num<i16, 4> = right_amount.change_base(); let right_amount: Num<i16, 4> = right_amount.change_base();
let left_amount: Num<i16, 4> = left_amount.change_base(); let left_amount: Num<i16, 4> = left_amount.change_base();