From 5612ae56915bb32a9ea87332b86f052c62689a0c Mon Sep 17 00:00:00 2001 From: ITotalJustice <47043333+ITotalJustice@users.noreply.github.com> Date: Thu, 16 Jan 2025 21:03:26 +0000 Subject: [PATCH] disable audio in applet mode due to audren fatal. fixes #92 --- sphaira/source/app.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sphaira/source/app.cpp b/sphaira/source/app.cpp index 3d21a2f..530e9d8 100644 --- a/sphaira/source/app.cpp +++ b/sphaira/source/app.cpp @@ -1265,9 +1265,14 @@ App::App(const char* argv0) { } } + // only enable audio in non-applet mode due to audren fatal. + // see: https://github.com/ITotalJustice/sphaira/issues/92 + if (IsApplication()) { + plsrPlayerInit(); + } + if (R_SUCCEEDED(romfsMountDataStorageFromProgram(0x0100000000001000, "qlaunch"))) { ON_SCOPE_EXIT(romfsUnmount("qlaunch")); - plsrPlayerInit(); PLSR_BFSAR qlaunch_bfsar; if (R_SUCCEEDED(plsrBFSAROpen("qlaunch:/sound/qlaunch.bfsar", &qlaunch_bfsar))) { ON_SCOPE_EXIT(plsrBFSARClose(&qlaunch_bfsar));