chore: calculate apu sample rate a bit better
This commit is contained in:
parent
172a59aefb
commit
d270ec711f
|
@ -12,7 +12,7 @@ const intToBytes = @import("util.zig").intToBytes;
|
|||
const log = std.log.scoped(.APU);
|
||||
|
||||
const sample_rate = 32768;
|
||||
const sample_ticks = 280896 * 60 / sample_rate;
|
||||
const sample_ticks = (1 << 24) / sample_rate;
|
||||
|
||||
pub const Apu = struct {
|
||||
const Self = @This();
|
||||
|
|
Loading…
Reference in New Issue