Some random fixes

This commit is contained in:
KiritoDv 2024-11-15 00:09:15 -06:00
parent 85dbf74ee4
commit 8da3a6e866
3 changed files with 11 additions and 18 deletions

View file

@ -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;