mic+nn_aoc+nn_fp: Reset more state on title start

This commit is contained in:
Exzap committed 2026-10-25 08:08:07 +01:00
1 parent bfb154520e
commit fe5ef4bf65
3 files changed
+10

No files matched your search

+7
View File
@@ -465,8 +465,15 @@ namespace mic
return "mic";
}
void RPLUnmapped() override
{
std::unique_lock lock(g_audioInputMutex);
mic_updateDevicePlayState(false);
}
void RPLMapped() override
{
MICStatus = {};
osLib_addFunction("mic", "MICInit", micExport_MICInit);
osLib_addFunction("mic", "MICOpen", micExport_MICOpen);
osLib_addFunction("mic", "MICClose", micExport_MICClose);
+2
View File
@@ -159,6 +159,8 @@ namespace nn
void RPLMapped() override
{
sAocCache.clear();
sAocCacheGenerated = false;
cafeExportRegister("nn_aoc", AOC_CalculateWorkBufferSize, LogType::NN_AOC);
cafeExportRegister("nn_aoc", AOC_ListTitle, LogType::NN_AOC);
+1
View File
@@ -781,6 +781,7 @@ namespace nn
g_fp.initCounter = 0;
g_fp.isAdminMode = false;
g_fp.isLoggedIn = false;
g_fp.fpdHandle = 0;
g_fp.getNotificationCalled = false;
g_fp.notificationHandler = nullptr;
g_fp.notificationHandlerParam = nullptr;