audouta: remove old versions of suspend and resume.

This commit is contained in:
ITotalJustice 2025-07-12 18:10:48 +01:00
parent 3bd9654c54
commit 7afba1d91a
2 changed files with 1 additions and 27 deletions

View File

@ -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);

View File

@ -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);