initialise stereo_buffer to 0 to prevent a race condition

This commit is contained in:
Squall Leonhart
2025-08-01 12:12:44 +10:00
committed by GitHub
parent 537393a0ab
commit 6242679e23

View File

@@ -16,7 +16,7 @@ extern long soundSampleRate; // current sound quality
gb_effects_config_t gb_effects_config = { false, 0.20f, 0.15f, false };
static gb_effects_config_t gb_effects_config_current;
static Simple_Effects_Buffer* stereo_buffer;
static Simple_Effects_Buffer* stereo_buffer = 0;
static Gb_Apu* gb_apu;
static float soundVolume_ = -1;