libnx  v4.2.0
auddev.h
Go to the documentation of this file.
1 /**
2  * @file auddev.h
3  * @brief IAudioDevice IPC wrapper.
4  * @author yellows8
5  * @copyright libnx Authors
6  */
7 #pragma once
8 
9 #include "../types.h"
10 #include "../audio/audio.h"
11 #include "../sf/service.h"
12 
13 /// Initialize IAudioDevice.
15 
16 /// Exit IAudioDevice.
17 void auddevExit(void);
18 
19 /// Gets the Service object for IAudioDevice.
21 
22 Result auddevListAudioDeviceName(AudioDeviceName *DeviceNames, s32 max_names, s32 *total_names);
23 Result auddevSetAudioDeviceOutputVolume(const AudioDeviceName *DeviceName, float volume);
24 Result auddevGetAudioDeviceOutputVolume(const AudioDeviceName *DeviceName, float *volume);
25 
AudioDeviceName
AudioDeviceName.
Definition: audio.h:23
s32
int32_t s32
32-bit signed integer.
Definition: types.h:27
auddevGetServiceSession
Service * auddevGetServiceSession(void)
Gets the Service object for IAudioDevice.
auddevExit
void auddevExit(void)
Exit IAudioDevice.
auddevInitialize
Result auddevInitialize(void)
Initialize IAudioDevice.
Result
u32 Result
Function error code result type.
Definition: types.h:44
Service
Service object structure.
Definition: service.h:13