fix buggy audio when closing lid
This commit is contained in:
parent
6578c852a1
commit
76aae7afd7
Binary file not shown.
|
@ -141,7 +141,7 @@ ECL_EXPORT void FrameAdvance(MyFrameInfo* f)
|
||||||
}
|
}
|
||||||
|
|
||||||
f->Samples = f->NDS->SPU.ReadOutput(f->SoundBuffer, 4096);
|
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));
|
memset(f->SoundBuffer, 0, 737 * 2 * sizeof(u16));
|
||||||
f->Samples = 737;
|
f->Samples = 737;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit ac356b9254ac3ce1819a14b94cbf852c9d77f04f
|
Subproject commit 723bd9599432943861cc4d8865f013043776382a
|
Loading…
Reference in New Issue