From 4b2d111859d2a71045e2608745c96d6e96069c09 Mon Sep 17 00:00:00 2001 From: plutoo Date: Sun, 30 May 2021 17:46:49 -0700 Subject: [PATCH] audctl: Fix prefix on enum --- nx/include/switch/services/audctl.h | 10 +++++----- nx/source/services/audctl.c | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/nx/include/switch/services/audctl.h b/nx/include/switch/services/audctl.h index 9995b7a7..f5911a97 100644 --- a/nx/include/switch/services/audctl.h +++ b/nx/include/switch/services/audctl.h @@ -26,9 +26,9 @@ typedef enum { } AudioForceMutePolicy; typedef enum { - HeadphoneOutputLevelMode_Normal = 0, - HeadphoneOutputLevelMode_HighPower = 1, -} HeadphoneOutputLevelMode; + AudioHeadphoneOutputLevelMode_Normal = 0, + AudioHeadphoneOutputLevelMode_HighPower = 1, +} AudioHeadphoneOutputLevelMode; Result audctlInitialize(void); void audctlExit(void); @@ -51,8 +51,8 @@ Result audctlGetOutputModeSetting(AudioOutputMode* mode_out, AudioTarget target) Result audctlSetOutputModeSetting(AudioTarget target, AudioOutputMode mode); Result audctlSetOutputTarget(AudioTarget target); Result audctlSetInputTargetForceEnabled(bool enable); -Result audctlSetHeadphoneOutputLevelMode(HeadphoneOutputLevelMode mode); -Result audctlGetHeadphoneOutputLevelMode(HeadphoneOutputLevelMode* mode_out); +Result audctlSetHeadphoneOutputLevelMode(AudioHeadphoneOutputLevelMode mode); +Result audctlGetHeadphoneOutputLevelMode(AudioHeadphoneOutputLevelMode* mode_out); Result audctlAcquireAudioVolumeUpdateEventForPlayReport(Event* event_out); Result audctlAcquireAudioOutputDeviceUpdateEventForPlayReport(Event* event_out); Result audctlGetAudioOutputTargetForPlayReport(AudioTarget* target_out); diff --git a/nx/source/services/audctl.c b/nx/source/services/audctl.c index d2b8a5f1..7a1a09e8 100644 --- a/nx/source/services/audctl.c +++ b/nx/source/services/audctl.c @@ -228,7 +228,7 @@ Result audctlSetInputTargetForceEnabled(bool enable) { return serviceDispatchIn(&g_audctlSrv, 16, in); } -Result audctlSetHeadphoneOutputLevelMode(HeadphoneOutputLevelMode mode) { +Result audctlSetHeadphoneOutputLevelMode(AudioHeadphoneOutputLevelMode mode) { if (hosversionBefore(3,0,0)) return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); @@ -239,7 +239,7 @@ Result audctlSetHeadphoneOutputLevelMode(HeadphoneOutputLevelMode mode) { return serviceDispatchIn(&g_audctlSrv, 17, in); } -Result audctlGetHeadphoneOutputLevelMode(HeadphoneOutputLevelMode* mode_out) { +Result audctlGetHeadphoneOutputLevelMode(AudioHeadphoneOutputLevelMode* mode_out) { if (hosversionBefore(3,0,0)) return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);