Reinstate panning

This commit is contained in:
Gwilym Kuiper 2021-06-10 23:46:46 +01:00
parent bcee6be7df
commit 898620112b

View file

@ -105,8 +105,8 @@ impl MixerBuffer {
let v: Num<i16, 4> = v.into(); let v: Num<i16, 4> = v.into();
channel.pos += channel.playback_speed; channel.pos += channel.playback_speed;
buffer[i] += v; buffer[i] += v * left_amount;
buffer[i + SOUND_BUFFER_SIZE] += v; buffer[i + SOUND_BUFFER_SIZE] += v * right_amount;
} }
} }