From 7afba1d91a449e25be171709286912c9f0f240a6 Mon Sep 17 00:00:00 2001 From: ITotalJustice <47043333+ITotalJustice@users.noreply.github.com> Date: Sat, 12 Jul 2025 18:10:48 +0100 Subject: [PATCH] audouta: remove old versions of suspend and resume. --- nx/include/switch/services/audout.h | 4 +--- nx/source/services/audout.c | 24 ------------------------ 2 files changed, 1 insertion(+), 27 deletions(-) diff --git a/nx/include/switch/services/audout.h b/nx/include/switch/services/audout.h index c996066f..6b142caa 100644 --- a/nx/include/switch/services/audout.h +++ b/nx/include/switch/services/audout.h @@ -1,7 +1,7 @@ /** * @file audout.h * @brief Audio output service. - * @author hexkyz + * @author hexkyz, TotalJustice * @copyright libnx Authors */ #pragma once @@ -104,8 +104,6 @@ u32 audoutGetChannelCount(void); ///< Supported channel count PcmFormat audoutGetPcmFormat(void); ///< Supported PCM format (Int16). AudioOutState audoutGetDeviceState(void); ///< Initial device state (stopped). -Result audoutaRequestSuspendOld(u64 pid, u64 delay, Handle* handle_out); // [1.0.0] - [4.0.0] -Result audoutaRequestResumeOld(u64 pid, u64 delay, Handle* handle_out); // [1.0.0] - [4.0.0] Result audoutaRequestSuspend(u64 pid, u64 delay); // [4.0.0]+ Result audoutaRequestResume(u64 pid, u64 delay); // [4.0.0]+ Result audoutaGetProcessMasterVolume(u64 pid, float* volume_out); diff --git a/nx/source/services/audout.c b/nx/source/services/audout.c index 5f685fcc..f61591b7 100644 --- a/nx/source/services/audout.c +++ b/nx/source/services/audout.c @@ -294,30 +294,6 @@ Result audoutGetAudioOutVolume(float *volume) { return serviceDispatchOut(&g_audoutIAudioOut, 13, *volume); } -Result audoutaRequestSuspendOld(u64 pid, u64 delay, Handle* handle_out) { - if (hosversionAtLeast(4,0,0)) - return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); - - const struct { - u64 pid; - u64 delay; - } in = { pid, delay }; - - return serviceDispatchInOut(&g_audoutaSrv, 0, in, *handle_out); -} - -Result audoutaRequestResumeOld(u64 pid, u64 delay, Handle* handle_out) { - if (hosversionAtLeast(4,0,0)) - return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); - - const struct { - u64 pid; - u64 delay; - } in = { pid, delay }; - - return serviceDispatchInOut(&g_audoutaSrv, 1, in, *handle_out); -} - Result audoutaRequestSuspend(u64 pid, u64 delay) { if (hosversionBefore(4,0,0)) return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);