libnx v4.10.0
Loading...
Searching...
No Matches
aud.h
Go to the documentation of this file.
1/**
2 * @file aud.h
3 * @brief Only available on [11.0.0+].
4 * @note Only one session may be open at once.
5 * @author TotalJustice
6 * @copyright libnx Authors
7 */
8
9#pragma once
10
11#include "../types.h"
12#include "../sf/service.h"
13
14#define AUD_MAX_DELAY (1000000000ULL)
15
16/// Initialize aud:a. Only available on [11.0.0+].
18
19/// Exit aud:a.
20void audaExit(void);
21
22/// Initialize aud:d. Only available on [11.0.0+].
24
25/// Exit aud:d.
26void auddExit(void);
27
28/// Gets the Service for aud:a.
30
31/// Gets the Service for aud:d.
33
34Result audaRequestSuspendAudio(u64 pid, u64 delay);
35Result audaRequestResumeAudio(u64 pid, u64 delay);
36Result audaGetAudioOutputProcessMasterVolume(u64 pid, float* volume_out);
37
38Result audaSetAudioOutputProcessMasterVolume(u64 pid, u64 delay, float volume);
39Result audaGetAudioInputProcessMasterVolume(u64 pid, float* volume_out);
40
41// Sets both Output and Input volume
42Result audaSetAudioInputProcessMasterVolume(u64 pid, u64 delay, float volume);
43Result audaGetAudioOutputProcessRecordVolume(u64 pid, float* volume_out);
44Result audaSetAudioOutputProcessRecordVolume(u64 pid, u64 delay, float volume);
45
46Result auddRequestSuspendAudioForDebug(u64 pid, u64 delay);
47Result auddRequestResumeAudioForDebug(u64 pid, u64 delay);
Result audaInitialize(void)
Initialize aud:a. Only available on [11.0.0+].
Service * auddGetServiceSession(void)
Gets the Service for aud:d.
Service * audaGetServiceSession(void)
Gets the Service for aud:a.
Result auddInitialize(void)
Initialize aud:d. Only available on [11.0.0+].
void audaExit(void)
Exit aud:a.
void auddExit(void)
Exit aud:d.
Service object structure.
Definition service.h:14
uint64_t u64
64-bit unsigned integer.
Definition types.h:22
u32 Result
Function error code result type.
Definition types.h:44