wut  v1.7.0
Wii U Toolchain
device.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 #include "result.h"
4 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 typedef void(*AXDeviceFinalMixCallback)(void*);
17 typedef void(*AXAuxCallback)(void*, void*);
18 
20 typedef uint32_t AXDeviceMode;
21 
23 typedef uint32_t AXDeviceType;
24 
26 {
27  // Unknown
29 };
30 
32 {
36 };
37 
40  AXDeviceMode *mode);
41 
45 
49 
52  uint32_t unk0,
53  uint32_t unk1,
54  AXAuxCallback *callback,
55  void **userData);
56 
59  uint32_t unk0,
60  uint32_t unk1,
61  AXAuxCallback callback,
62  void *userData);
63 
66  uint32_t unk0,
67  uint32_t unk1);
68 
71  uint32_t unk0);
72 
75  BOOL postFinalMix);
76 
79  uint32_t id,
80  uint16_t volume);
81 
82 #ifdef __cplusplus
83 }
84 #endif
85 
AX_DEVICE_TYPE
Definition: device.h:32
AXResult AXSetDeviceLinearUpsampler(AXDeviceType type, uint32_t unk0, uint32_t unk1)
AXResult AXGetDeviceMode(AXDeviceType type, AXDeviceMode *mode)
AXResult AXSetDeviceVolume(AXDeviceType type, uint32_t id, uint16_t volume)
AXResult AXGetAuxCallback(AXDeviceType type, uint32_t unk0, uint32_t unk1, AXAuxCallback *callback, void **userData)
AXResult AXSetDeviceCompressor(AXDeviceType type, uint32_t unk0)
AXResult AXRegisterDeviceFinalMixCallback(AXDeviceType type, AXDeviceFinalMixCallback func)
AX_DEVICE_MODE
Definition: device.h:26
uint32_t AXDeviceMode
A value from enum AX_DEVICE_MODE.
Definition: device.h:20
uint32_t AXDeviceType
A value from enum AX_DEVICE_TYPE.
Definition: device.h:23
AXResult AXSetDeviceUpsampleStage(AXDeviceType type, BOOL postFinalMix)
void(* AXAuxCallback)(void *, void *)
Definition: device.h:17
AXResult AXGetDeviceFinalMixCallback(AXDeviceType type, AXDeviceFinalMixCallback *func)
AXResult AXRegisterAuxCallback(AXDeviceType type, uint32_t unk0, uint32_t unk1, AXAuxCallback callback, void *userData)
void(* AXDeviceFinalMixCallback)(void *)
Definition: device.h:16
@ AX_DEVICE_TYPE_DRC
Definition: device.h:34
@ AX_DEVICE_TYPE_TV
Definition: device.h:33
@ AX_DEVICE_TYPE_CONTROLLER
Definition: device.h:35
@ AX_DEVICE_MODE_UNKNOWN
Definition: device.h:28
int32_t AXResult
A value from enum AX_RESULT.
Definition: result.h:16
int32_t BOOL
Definition: wut_types.h:7