mirror of
https://github.com/switchbrew/libnx.git
synced 2025-08-06 00:19:22 +02:00
audouta: remove old versions of suspend and resume.
This commit is contained in:
parent
3bd9654c54
commit
7afba1d91a
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user