171 CHECK_OFFSET(
AXVoice, 0x0, index);
172 CHECK_OFFSET(
AXVoice, 0x4, state);
173 CHECK_OFFSET(
AXVoice, 0x8, volume);
174 CHECK_OFFSET(
AXVoice, 0xc, renderer);
175 CHECK_OFFSET(
AXVoice, 0x10, link);
176 CHECK_OFFSET(
AXVoice, 0x18, cbNext);
177 CHECK_OFFSET(
AXVoice, 0x1c, priority);
178 CHECK_OFFSET(
AXVoice, 0x20, callback);
179 CHECK_OFFSET(
AXVoice, 0x24, userContext);
180 CHECK_OFFSET(
AXVoice, 0x28, syncBits);
181 CHECK_OFFSET(
AXVoice, 0x34, offsets);
182 CHECK_OFFSET(
AXVoice, 0x48, callbackEx);
183 CHECK_OFFSET(
AXVoice, 0x4c, callbackReason);
184 CHECK_OFFSET(
AXVoice, 0x50, unk0);
185 CHECK_OFFSET(
AXVoice, 0x54, unk1);
235 #pragma pack(push, 1)
250 CHECK_OFFSET(
AXVoiceSrc, 0x4, currentOffsetFrac);
277 const void *samples);
314 const void *samples);
327 const void *samples);
350 AXVoiceSrcRatioResult
356 AXVoiceSrcType type);
void AXSetVoiceCurrentOffset(AXVoice *voice, uint32_t offset)
uint32_t volume
Current volume of this voice.
uint32_t syncBits
A bitfield representing different things needing to be synced.
AXVoiceRenderer renderer
The renderer to use for this voice.
AXVoiceCallbackFn callback
The callback to call if this is force-free'd by another acquire.
void AXSetVoiceAdpcm(AXVoice *voice, AXVoiceAdpcm *adpcm)
void AXGetVoiceOffsets(AXVoice *voice, AXVoiceOffsets *offsets)
void AXSetVoiceOffsets(AXVoice *voice, AXVoiceOffsets *offsets)
void AXSetVoiceEndOffsetEx(AXVoice *voice, uint32_t offset, const void *samples)
uint32_t AXVoiceRenderer
A value from enum AX_VOICE_RENDERER.
void AXSetVoiceLoopOffsetEx(AXVoice *voice, uint32_t offset, const void *samples)
BOOL AXIsVoiceRunning(AXVoice *voice)
AXVoiceLoop loopingEnabled
uint16_t currentOffsetFrac
Used by the resampler, fixed 0.16.
uint32_t priority
The priority of this voice used for force-acquiring a voice.
void AXSetVoiceSrc(AXVoice *voice, AXVoiceSrc *src)
void AXSetVoiceAdpcmLoop(AXVoice *voice, AXVoiceAdpcmLoopData *loopData)
void(* AXVoiceCallbackExFn)(void *, uint32_t, uint32_t)
void AXSetVoicePriority(AXVoice *voice, uint32_t priority)
void AXSetVoiceLoopOffset(AXVoice *voice, uint32_t offset)
uint32_t AXGetMaxVoices()
uint32_t AXVoiceState
A value from enum AX_VOICE_STATE.
int32_t AXVoiceSrcRatioResult
A value from enum AX_VOICE_RATIO_RESULT.
AXVoiceState state
Current play state of this voice.
uint16_t AXVoiceLoop
A value from enum AX_VOICE_LOOP.
AXVoiceSrcRatioResult AXSetVoiceSrcRatio(AXVoice *voice, float ratio)
void AXSetVoiceVeDelta(AXVoice *voice, int16_t delta)
AXVoiceDeviceBusMixData bus[4]
BOOL AXCheckVoiceOffsets(AXVoiceOffsets *offsets)
void AXSetVoiceEndOffset(AXVoice *voice, uint32_t offset)
uint32_t AXGetVoiceCurrentOffsetEx(AXVoice *voice, const void *samples)
AXResult AXSetVoiceInitialTimeDelay(AXVoice *voice, uint16_t delay)
AXVoice * cbNext
A link to the next callback to invoke.
AXVoice * AXAcquireVoiceEx(uint32_t priority, AXVoiceCallbackExFn callback, void *userContext)
void AXSetVoiceSrcType(AXVoice *voice, AXVoiceSrcType type)
uint16_t AXVoiceFormat
A value from enum AX_VOICE_FORMAT.
uint32_t index
The index of this voice out of the total voices.
void AXSetVoiceRmtIIRCoefs(AXVoice *voice, uint16_t filter,...)
uint32_t AXDeviceType
A value from enum AX_DEVICE_TYPE.
AXVoiceCallbackExFn callbackEx
An extended version of the callback above.
uint32_t callbackReason
The reason for the callback being invoked.
int32_t AXResult
A value from enum AX_RESULT.
void(* AXVoiceCallbackFn)(void *)
AXVoice * AXAcquireVoice(uint32_t priority, AXVoiceCallbackFn callback, void *userContext)
uint32_t AXVoiceSrcType
A value from enum AX_VOICE_SRC_TYPE.
AXResult AXSetVoiceDeviceMix(AXVoice *voice, AXDeviceType type, uint32_t id, AXVoiceDeviceMixData *mixData)
void AXSetVoiceVe(AXVoice *voice, AXVoiceVeData *veData)
void AXSetVoiceState(AXVoice *voice, AXVoiceState state)
void * userContext
The user context to send to the callbacks.
void AXSetVoiceLoop(AXVoice *voice, AXVoiceLoop loop)
AXVoiceLink link
this is a link used in the stack, we do this in host-memory currently
uint32_t AXVoiceType
A value from enum AX_VOICE_TYPE.
AXVoiceOffsets offsets
The current offset data!
void AXFreeVoice(AXVoice *voice)
void AXSetVoiceType(AXVoice *voice, AXVoiceType type)
uint32_t ratio
Playback rate, fixed 16.16.
uint32_t AXGetVoiceLoopCount(AXVoice *voice)