style(scheduler): rename scheduler event handlers

This commit is contained in:
2022-10-21 05:13:04 -03:00
parent ae6b8e2f03
commit 739d38533a
9 changed files with 19 additions and 19 deletions

View File

@@ -373,7 +373,7 @@ pub const Apu = struct {
return @as(u64, 1) << (15 + @as(u6, cycle));
}
pub fn tickFrameSequencer(self: *Self, late: u64) void {
pub fn onSequencerTick(self: *Self, late: u64) void {
self.fs.tick();
switch (self.fs.step) {
@@ -403,7 +403,7 @@ pub const Apu = struct {
self.ch4.tickEnvelope();
}
pub fn handleTimerOverflow(self: *Self, cpu: *Arm7tdmi, tim_id: u3) void {
pub fn onDmaAudioSampleRequest(self: *Self, cpu: *Arm7tdmi, tim_id: u3) void {
if (!self.cnt.apu_enable.read()) return;
if (@boolToInt(self.dma_cnt.chA_timer.read()) == tim_id) {