fix: play right samples in right channel
This commit is contained in:
parent
fc7f2a2959
commit
2502cc5bf0
|
@ -182,7 +182,7 @@ pub const Apu = struct {
|
|||
right += bias;
|
||||
|
||||
const tmp_left = std.math.clamp(@intCast(u16, left), std.math.minInt(u11), std.math.maxInt(u11));
|
||||
const tmp_right = std.math.clamp(@intCast(u16, left), std.math.minInt(u11), std.math.maxInt(u11));
|
||||
const tmp_right = std.math.clamp(@intCast(u16, right), std.math.minInt(u11), std.math.maxInt(u11));
|
||||
|
||||
// Extend to 16-bit signed audio samples
|
||||
const final_left = (tmp_left << 5) | (tmp_left >> 6);
|
||||
|
|
Loading…
Reference in New Issue