wut  v1.7.0
Wii U Toolchain
core.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 #include <sndcore2/device.h>
4 #include "result.h"
5 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 typedef struct AXProfile AXProfile;
18 typedef struct AXInitParams AXInitParams;
21 
22 typedef void(*AXFrameCallback)(void);
23 
25 typedef uint32_t AXInitRenderer;
26 
28 typedef uint32_t AXInitPipeline;
29 
31 {
34 };
35 
37 {
40 };
41 
42 struct AXProfile
43 {
44  // Unknown
45 };
46 
48 {
50  WUT_UNKNOWN_BYTES(4);
52 };
53 WUT_CHECK_OFFSET(AXInitParams, 0x00, renderer);
54 WUT_CHECK_OFFSET(AXInitParams, 0x08, pipeline);
55 WUT_CHECK_SIZE(AXInitParams, 0x0C);
56 
57 struct WUT_PACKED AXTransitionAudioBufferDevice {
59  float unk1;
60  uint32_t unk2;
62 };
63 WUT_CHECK_SIZE(AXTransitionAudioBufferDevice, 0x10);
64 
65 struct WUT_PACKED AXTransitionAudioBuffer {
66  uint32_t unk1;
67  uint32_t unk2;
68  uint32_t length;
69  uint32_t loopPoint;
70  void *audioBuffer;
71  uint32_t audioBufferLen;
74 };
75 WUT_CHECK_OFFSET(AXTransitionAudioBuffer, 0x00, unk1);
76 WUT_CHECK_OFFSET(AXTransitionAudioBuffer, 0x04, unk2);
77 WUT_CHECK_OFFSET(AXTransitionAudioBuffer, 0x08, length);
78 WUT_CHECK_OFFSET(AXTransitionAudioBuffer, 0x0C, loopPoint);
79 WUT_CHECK_OFFSET(AXTransitionAudioBuffer, 0x10, audioBuffer);
80 WUT_CHECK_OFFSET(AXTransitionAudioBuffer, 0x14, audioBufferLen);
81 WUT_CHECK_OFFSET(AXTransitionAudioBuffer, 0x18, tv.mode);
82 WUT_CHECK_OFFSET(AXTransitionAudioBuffer, 0x24, tv.enabled);
83 WUT_CHECK_OFFSET(AXTransitionAudioBuffer, 0x28, drc.mode);
84 WUT_CHECK_OFFSET(AXTransitionAudioBuffer, 0x34, drc.enabled);
85 WUT_CHECK_SIZE(AXTransitionAudioBuffer, 0x38);
86 
87 void
89 
90 void
92 
93 void
95 
96 BOOL
98 
99 void
101  uint32_t count);
102 
103 uint32_t
105  uint32_t count);
106 
107 AXResult
108 AXSetDefaultMixerSelect(uint32_t unk0);
109 
110 AXResult
112 
113 AXResult
115 
118 
119 uint32_t
121 
122 uint32_t
124 
125 void
127 
128 void
130 
131 #ifdef __cplusplus
132 }
133 #endif
134 
AXTransitionAudioBufferDevice tv
Definition: core.h:72
AXInitPipeline pipeline
Definition: core.h:50
uint32_t loopPoint
Definition: core.h:69
AXTransitionAudioBufferDevice drc
Definition: core.h:73
void * audioBuffer
Definition: core.h:70
AXInitRenderer renderer
Definition: core.h:49
uint32_t audioBufferLen
Definition: core.h:71
uint32_t length
Definition: core.h:68
AXResult AXDeregisterAppFrameCallback(AXFrameCallback callback)
uint32_t AXInitPipeline
A value from enum AX_INIT_PIPELINE.
Definition: core.h:28
uint32_t AXGetSwapProfile(AXProfile *profile, uint32_t count)
BOOL AXIsInit()
AXResult AXSetDefaultMixerSelect(uint32_t unk0)
void AXInitWithParams(AXInitParams *params)
void AXQuit()
void AXInit()
AXFrameCallback AXRegisterFrameCallback(AXFrameCallback callback)
uint32_t AXGetInputSamplesPerFrame()
uint32_t AXGetInputSamplesPerSec()
void AXInitProfile(AXProfile *profile, uint32_t count)
AX_INIT_PIPELINE
Definition: core.h:37
void AXStartTransitionAudio()
uint32_t AXInitRenderer
A value from enum AX_INIT_RENDERER.
Definition: core.h:25
void AXSetUpTransitionAudio(AXTransitionAudioBuffer *buffer)
AX_INIT_RENDERER
Definition: core.h:31
void(* AXFrameCallback)(void)
Definition: core.h:22
AXResult AXRegisterAppFrameCallback(AXFrameCallback callback)
@ AX_INIT_PIPELINE_FOUR_STAGE
Definition: core.h:39
@ AX_INIT_PIPELINE_SINGLE
Definition: core.h:38
@ AX_INIT_RENDERER_48KHZ
Definition: core.h:33
@ AX_INIT_RENDERER_32KHZ
Definition: core.h:32
Definition: core.h:43
uint32_t AXDeviceMode
A value from enum AX_DEVICE_MODE.
Definition: device.h:20
int32_t AXResult
A value from enum AX_RESULT.
Definition: result.h:16
int32_t BOOL
Definition: wut_types.h:7