WUT  0.1
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 
39 AXGetDeviceMode(AXDeviceType type,
40  AXDeviceMode *mode);
41 
43 AXGetDeviceFinalMixCallback(AXDeviceType type,
45 
47 AXRegisterDeviceFinalMixCallback(AXDeviceType type,
49 
51 AXGetAuxCallback(AXDeviceType type,
52  uint32_t unk0,
53  uint32_t unk1,
54  AXAuxCallback *callback,
55  void **userData);
56 
58 AXRegisterAuxCallback(AXDeviceType type,
59  uint32_t unk0,
60  uint32_t unk1,
61  AXAuxCallback callback,
62  void *userData);
63 
65 AXSetDeviceLinearUpsampler(AXDeviceType type,
66  uint32_t unk0,
67  uint32_t unk1);
68 
70 AXSetDeviceCompressor(AXDeviceType type,
71  uint32_t unk0);
72 
74 AXSetDeviceUpsampleStage(AXDeviceType type,
75  BOOL postFinalMix);
76 
78 AXSetDeviceVolume(AXDeviceType type,
79  uint32_t id,
80  uint16_t volume);
81 
82 #ifdef __cplusplus
83 }
84 #endif
85 
AXResult AXGetDeviceMode(AXDeviceType type, AXDeviceMode *mode)
AXResult AXGetDeviceFinalMixCallback(AXDeviceType type, AXDeviceFinalMixCallback *func)
AX_DEVICE_MODE
Definition: device.h:25
AXResult AXGetAuxCallback(AXDeviceType type, uint32_t unk0, uint32_t unk1, AXAuxCallback *callback, void **userData)
void(* AXDeviceFinalMixCallback)(void *)
Definition: device.h:16
AXResult AXSetDeviceVolume(AXDeviceType type, uint32_t id, uint16_t volume)
AXResult AXSetDeviceCompressor(AXDeviceType type, uint32_t unk0)
AX_DEVICE_TYPE
Definition: device.h:31
AXResult AXSetDeviceUpsampleStage(AXDeviceType type, BOOL postFinalMix)
AXResult AXSetDeviceLinearUpsampler(AXDeviceType type, uint32_t unk0, uint32_t unk1)
int BOOL
Definition: wut_types.h:5
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
void(* AXAuxCallback)(void *, void *)
Definition: device.h:17
int32_t AXResult
A value from enum AX_RESULT.
Definition: result.h:16
AXResult AXRegisterAuxCallback(AXDeviceType type, uint32_t unk0, uint32_t unk1, AXAuxCallback callback, void *userData)
AXResult AXRegisterDeviceFinalMixCallback(AXDeviceType type, AXDeviceFinalMixCallback func)