libnx  v4.7.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 Result auddevGetActiveAudioDeviceName(AudioDeviceName *DeviceName);
Service * auddevGetServiceSession(void)
Gets the Service object for IAudioDevice.
Result auddevInitialize(void)
Initialize IAudioDevice.
void auddevExit(void)
Exit IAudioDevice.
AudioDeviceName.
Definition: audio.h:23
Service object structure.
Definition: service.h:14
u32 Result
Function error code result type.
Definition: types.h:44
int32_t s32
32-bit signed integer.
Definition: types.h:27