HLE DSP: Handle cycle drifting

This commit is contained in:
wheremyfoodat 2024-08-04 16:46:43 +03:00
parent e666afd1a3
commit 85bae2e94e
7 changed files with 22 additions and 13 deletions

View file

@ -83,7 +83,7 @@ namespace Audio {
void reset() override;
// Run 1 slice of DSP instructions and schedule the next audio frame
void runAudioFrame() override {
void runAudioFrame(u64 eventTimestamp) override {
runSlice();
scheduler.addEvent(Scheduler::EventType::RunDSP, scheduler.currentTimestamp + Audio::lleSlice * 2);
}