RetroArch
voice.h
Go to the documentation of this file.
1 #pragma once
2 #include <wiiu/types.h>
3 #include "device.h"
4 #include "result.h"
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
10 typedef void(*AXVoiceCallbackFn)(void *);
12 
14 {
18 };
20 
22 {
25 };
27 
29 {
33 };
35 
37 {
41 };
43 
45 {
51 };
53 
55 {
58 };
60 
62 {
63  /* Unknown */
65 };
67 
68 typedef struct
69 {
75  const void *data;
77 
78 typedef struct AXVoice AXVoice;
79 
80 typedef struct
81 {
84 } AXVoiceLink;
85 
86 struct AXVoice
87 {
96  void *userContext;
102  float unk0;
103  float unk1;
104 };
105 
106 typedef struct
107 {
111 
112 typedef struct
113 {
116 
117 typedef struct
118 {
121 } AXVoiceVeData;
122 
123 typedef struct
124 {
126  int16_t prevSample[2];
128 
129 typedef struct
130 {
131  int16_t coefficients[16];
134  int16_t prevSample[2];
135 } AXVoiceAdpcm;
136 
137 /* AXVoice Sample Rate Converter */
138 typedef struct
139 {
143  int16_t lastSample[4];
144 } AXVoiceSrc;
145 
149 void AXFreeVoice(AXVoice *voice);
155 void AXSetVoiceAdpcm(AXVoice *voice, AXVoiceAdpcm *adpcm);
156 void AXSetVoiceAdpcmLoop(AXVoice *voice, AXVoiceAdpcmLoopData *loopData);
160 void AXSetVoiceEndOffsetEx(AXVoice *voice, uint32_t offset, const void *samples);
163 void AXSetVoiceLoopOffsetEx(AXVoice *voice, uint32_t offset, const void *samples);
164 void AXSetVoiceLoop(AXVoice *voice, AXVoiceLoop loop);
167 void AXSetVoiceRmtIIRCoefs(AXVoice *voice, uint16_t filter, ...);
168 void AXSetVoiceSrc(AXVoice *voice, AXVoiceSrc *src);
172 void AXSetVoiceType(AXVoice *voice, AXVoiceType type);
173 void AXSetVoiceVe(AXVoice *voice, AXVoiceVeData *veData);
174 void AXSetVoiceVeDelta(AXVoice *voice, int16_t delta);
175 
176 #ifdef __cplusplus
177 }
178 #endif
Definition: voice.h:23
GLsizei samples
Definition: glext.h:7673
AXVoice * AXAcquireVoiceEx(uint32_t priority, AXVoiceCallbackExFn callback, void *userContext)
Definition: voice.h:123
void AXSetVoiceVe(AXVoice *voice, AXVoiceVeData *veData)
void AXSetVoiceVeDelta(AXVoice *voice, int16_t delta)
AXVoiceSrcRatioResult AXSetVoiceSrcRatio(AXVoice *voice, float ratio)
uint32_t currentOffset
Definition: voice.h:74
void AXSetVoiceLoopOffsetEx(AXVoice *voice, uint32_t offset, const void *samples)
AXVoiceRenderer renderer
Definition: voice.h:91
void AXSetVoiceRmtIIRCoefs(AXVoice *voice, uint16_t filter,...)
float unk1
Definition: voice.h:103
Definition: voice.h:24
void AXSetVoiceAdpcm(AXVoice *voice, AXVoiceAdpcm *adpcm)
Definition: voice.h:64
void AXSetVoiceAdpcmLoop(AXVoice *voice, AXVoiceAdpcmLoopData *loopData)
float unk0
Definition: voice.h:102
uint16_t predScale
Definition: voice.h:125
BOOL AXCheckVoiceOffsets(AXVoiceOffsets *offsets)
uint16_t volume
Definition: voice.h:108
Definition: voice.h:106
void AXSetVoiceLoop(AXVoice *voice, AXVoiceLoop loop)
GLuint GLsizei const GLuint const GLintptr * offsets
Definition: glsym_gl.h:634
Definition: voice.h:68
void AXSetVoiceSrcType(AXVoice *voice, AXVoiceSrcType type)
AXVoiceLoop loopingEnabled
Definition: voice.h:71
void AXSetVoiceState(AXVoice *voice, AXVoiceState state)
AXVoice * prev
Definition: voice.h:83
int16_t delta
Definition: voice.h:109
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
Definition: voice.h:47
uint16_t ratio_int
Definition: voice.h:140
uint16_t AXVoiceFormat
Definition: voice.h:19
Definition: voice.h:138
Definition: voice.h:17
uint16_t ratio_fraction
Definition: voice.h:141
Definition: voice.h:117
AX_VOICE_RATIO_RESULT
Definition: voice.h:36
AXVoiceState state
Definition: voice.h:89
Definition: voice.h:86
void callback(s32 result, dvdcmdblk *block)
Definition: dvd.c:2293
Definition: voice.h:48
uint16_t AXVoiceLoop
Definition: voice.h:26
Definition: voice.h:30
GLenum type
Definition: glext.h:6233
AXResult AXSetVoiceInitialTimeDelay(AXVoice *voice, uint16_t delay)
Definition: voice.h:129
void AXGetVoiceOffsets(AXVoice *voice, AXVoiceOffsets *offsets)
uint32_t loopOffset
Definition: voice.h:72
uint32_t index
Definition: voice.h:88
uint32_t AXVoiceState
Definition: voice.h:59
Definition: voice.h:112
Definition: voice.h:31
AXResult
Definition: result.h:8
uint32_t endOffset
Definition: voice.h:73
void AXSetVoiceOffsets(AXVoice *voice, AXVoiceOffsets *offsets)
uint32_t AXVoiceSrcType
Definition: voice.h:52
uint32_t AXVoiceRenderer
Definition: voice.h:34
signed short int16_t
Definition: stdint.h:122
AX_VOICE_LOOP
Definition: voice.h:21
Definition: voice.h:49
static uint64_t state[MAX_PADS]
Definition: xenon360_input.c:33
AXVoice * cbNext
Definition: voice.h:93
GLenum src
Definition: glext.h:6980
AX_VOICE_SRC_TYPE
Definition: voice.h:44
Definition: voice.h:50
uint16_t gain
Definition: voice.h:132
uint32_t AXGetVoiceCurrentOffsetEx(AXVoice *voice, const void *samples)
uint16_t currentOffsetFrac
Definition: voice.h:142
uint32_t AXDeviceType
Definition: device.h:25
Definition: voice.h:46
static const struct @104 priority[]
uint32_t _unknown[0x2]
Definition: voice.h:98
signed int int32_t
Definition: stdint.h:123
void AXSetVoiceEndOffset(AXVoice *voice, uint32_t offset)
uint16_t predScale
Definition: voice.h:133
unsigned int BOOL
Definition: gctypes.h:51
BOOL AXIsVoiceRunning(AXVoice *voice)
uint32_t AXVoiceType
Definition: voice.h:66
void(* AXVoiceCallbackFn)(void *)
Definition: voice.h:10
AX_VOICE_FORMAT
Definition: voice.h:13
void AXFreeVoice(AXVoice *voice)
uint32_t priority
Definition: voice.h:94
Definition: voice.h:57
uint16_t volume
Definition: voice.h:119
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
Definition: glext.h:7672
void AXSetVoiceSrc(AXVoice *voice, AXVoiceSrc *src)
Definition: voice.h:38
AXResult AXSetVoiceDeviceMix(AXVoice *voice, AXDeviceType type, uint32_t id, AXVoiceDeviceMixData *mixData)
AX_VOICE_RENDERER
Definition: voice.h:28
void AXSetVoiceLoopOffset(AXVoice *voice, uint32_t offset)
Definition: voice.h:16
AXVoiceFormat dataType
Definition: voice.h:70
uint32_t AXGetVoiceLoopCount(AXVoice *voice)
int32_t AXVoiceSrcRatioResult
Definition: voice.h:42
uint32_t AXGetMaxVoices()
void AXSetVoiceCurrentOffset(AXVoice *voice, uint32_t offset)
AX_VOICE_TYPE
Definition: voice.h:61
int16_t delta
Definition: voice.h:120
void AXSetVoiceType(AXVoice *voice, AXVoiceType type)
AXVoiceCallbackFn callback
Definition: voice.h:95
uint32_t callbackReason
Definition: voice.h:101
void AXSetVoiceEndOffsetEx(AXVoice *voice, uint32_t offset, const void *samples)
GLintptr offset
Definition: glext.h:6560
const void * data
Definition: voice.h:75
Definition: voice.h:32
AXVoice * next
Definition: voice.h:82
uint32_t syncBits
Definition: voice.h:97
void * userContext
Definition: voice.h:96
AXVoice * AXAcquireVoice(uint32_t priority, AXVoiceCallbackFn callback, void *userContext)
Definition: voice.h:80
unsigned short uint16_t
Definition: stdint.h:125
AXVoiceOffsets offsets
Definition: voice.h:99
Definition: voice.h:56
unsigned int uint32_t
Definition: stdint.h:126
void AXSetVoicePriority(AXVoice *voice, uint32_t priority)
AXVoiceCallbackExFn callbackEx
Definition: voice.h:100
AXVoiceLink link
Definition: voice.h:92
void(* AXVoiceCallbackExFn)(void *, uint32_t, uint32_t)
Definition: voice.h:11
uint32_t volume
Definition: voice.h:90
AX_VOICE_STATE
Definition: voice.h:54
Definition: voice.h:15