From 5ebd7700c3c28c09d9baa315fd06d342e8d7f4c1 Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Fri, 29 Nov 2024 22:10:01 -0600 Subject: [PATCH] Recalculated samples_high/low to 26800(Still needs help) --- src/port/Engine.cpp | 2 +- src/port/Engine.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/port/Engine.cpp b/src/port/Engine.cpp index 66faebeb1..d9e420bf7 100644 --- a/src/port/Engine.cpp +++ b/src/port/Engine.cpp @@ -62,7 +62,7 @@ GameEngine::GameEngine() { } } - this->context = Ship::Context::CreateInstance("Spaghettify", "skart64", "spaghettify.cfg.json", OTRFiles, {}, 3, {32000, 512, 1100}); + this->context = Ship::Context::CreateInstance("Spaghettify", "skart64", "spaghettify.cfg.json", OTRFiles, {}, 3, { 26800, 512, 1100 }); auto wnd = std::dynamic_pointer_cast(Ship::Context::GetInstance()->GetWindow()); diff --git a/src/port/Engine.h b/src/port/Engine.h index 85fa6ba58..429bace4f 100644 --- a/src/port/Engine.h +++ b/src/port/Engine.h @@ -10,8 +10,8 @@ #include #include "libultraship/src/Context.h" -#define SAMPLES_HIGH 544 -#define SAMPLES_LOW 528 +#define SAMPLES_HIGH 454 +#define SAMPLES_LOW 438 #define AUDIO_FRAMES_PER_UPDATE 2 #define NUM_AUDIO_CHANNELS 2 #define SAMPLES_PER_FRAME (SAMPLES_HIGH * NUM_AUDIO_CHANNELS * 2)