fix buggy audio when closing lid

This commit is contained in:
CasualPokePlayer 2024-11-01 15:22:32 -07:00
parent 6578c852a1
commit 76aae7afd7
3 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -141,7 +141,7 @@ ECL_EXPORT void FrameAdvance(MyFrameInfo* f)
}
f->Samples = f->NDS->SPU.ReadOutput(f->SoundBuffer, 4096);
if (f->Samples == 0) // hack when core decides to stop outputting audio altogether (lid closed or power off)
if (f->Samples == 0) // hack when core decides to stop outputting audio altogether (power off)
{
memset(f->SoundBuffer, 0, 737 * 2 * sizeof(u16));
f->Samples = 737;

@ -1 +1 @@
Subproject commit ac356b9254ac3ce1819a14b94cbf852c9d77f04f
Subproject commit 723bd9599432943861cc4d8865f013043776382a