chore: calculate apu sample rate a bit better

This commit is contained in:
Rekai Nyangadzayi Musuka 2022-10-21 05:12:36 -03:00
parent af1887e0a6
commit a87a5ce273
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ const intToBytes = @import("util.zig").intToBytes;
const log = std.log.scoped(.APU); const log = std.log.scoped(.APU);
const sample_rate = 32768; const sample_rate = 32768;
const sample_ticks = 280896 * 60 / sample_rate; const sample_ticks = (1 << 24) / sample_rate;
pub const Apu = struct { pub const Apu = struct {
const Self = @This(); const Self = @This();