Skip to content

Commit

Permalink
fix buggy audio when closing lid
Browse files Browse the repository at this point in the history
  • Loading branch information
CasualPokePlayer committed Nov 1, 2024
1 parent 6578c85 commit 76aae7a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified Assets/dll/melonDS.wbx.zst
Binary file not shown.
2 changes: 1 addition & 1 deletion waterbox/melon/BizInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion waterbox/melon/melonDS
Submodule melonDS updated 1 files
+4 −2 src/SPU.cpp

0 comments on commit 76aae7a

Please sign in to comment.