diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2024-11-15 00:09:15 -0600 |
|---|---|---|
| committer | KiritoDv <kiritodev01@gmail.com> | 2024-11-15 00:09:15 -0600 |
| commit | 8da3a6e866a17fd73f8e67b8d885c0a6bc6d4901 (patch) | |
| tree | c85cdc68e11d701dd685f60ea426794878b79219 /src/port/Engine.cpp | |
| parent | 85dbf74ee4cf5e6288abf8e634a232281c88f050 (diff) | |
Some random fixes
Diffstat (limited to 'src/port/Engine.cpp')
| -rw-r--r-- | src/port/Engine.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/port/Engine.cpp b/src/port/Engine.cpp index 4c254c97..572d42ec 100644 --- a/src/port/Engine.cpp +++ b/src/port/Engine.cpp @@ -68,7 +68,7 @@ GameEngine::GameEngine() { } this->context = - Ship::Context::CreateInstance("Starship", "ship", "starship.cfg.json", OTRFiles, {}, 3, { 44100, 1024, 2480 }); + Ship::Context::CreateInstance("Starship", "ship", "starship.cfg.json", OTRFiles, {}, 3, { 44100, 1056, 1056 * 2 }); auto loader = context->GetResourceManager()->GetResourceLoader(); loader->RegisterResourceFactory(std::make_shared<SF64::ResourceFactoryBinaryAnimV0>(), RESOURCE_FORMAT_BINARY, @@ -150,10 +150,11 @@ void GameEngine::StartFrame() const { } #define SAMPLES_HIGH 1056 -#define SAMPLES_LOW 890 +#define SAMPLES_LOW 880 #define NUM_AUDIO_CHANNELS 2 #define SAMPLES_PER_FRAME (SAMPLES_HIGH * NUM_AUDIO_CHANNELS * 3) +extern "C" s16 audio_buffer[SAMPLES_PER_FRAME * 2 * 2] = { 0 }; extern "C" s32 audBuffer = 0; |
