wut  v1.7.0
Wii U Toolchain
Data Structures | Typedefs | Enumerations | Functions
Collaboration diagram for Voice:

Data Structures

struct  AXVoiceOffsets
 
struct  AXVoice
 
struct  AXVoiceDeviceBusMixData
 
struct  AXVoiceDeviceMixData
 
struct  AXVoiceVeData
 
struct  AXVoiceAdpcmLoopData
 
struct  AXVoiceAdpcm
 
struct  AXVoiceSrc
 AXVoice Sample Rate Converter. More...
 

Typedefs

typedef struct AXVoice AXVoice
 
typedef struct AXVoiceAdpcmLoopData AXVoiceAdpcmLoopData
 
typedef struct AXVoiceAdpcm AXVoiceAdpcm
 
typedef struct AXVoiceDeviceBusMixData AXVoiceDeviceBusMixData
 
typedef struct AXVoiceDeviceMixData AXVoiceDeviceMixData
 
typedef struct AXVoiceLink AXVoiceLink
 
typedef struct AXVoiceOffsets AXVoiceOffsets
 
typedef struct AXVoiceSrc AXVoiceSrc
 
typedef struct AXVoiceVeData AXVoiceVeData
 
typedef uint16_t AXVoiceFormat
 A value from enum AX_VOICE_FORMAT. More...
 
typedef uint16_t AXVoiceLoop
 A value from enum AX_VOICE_LOOP. More...
 
typedef uint32_t AXVoiceSrcType
 A value from enum AX_VOICE_SRC_TYPE. More...
 
typedef uint32_t AXVoiceState
 A value from enum AX_VOICE_STATE. More...
 
typedef uint32_t AXVoiceRenderer
 A value from enum AX_VOICE_RENDERER. More...
 
typedef int32_t AXVoiceSrcRatioResult
 A value from enum AX_VOICE_RATIO_RESULT. More...
 
typedef uint32_t AXVoiceType
 A value from enum AX_VOICE_TYPE. More...
 
typedef void(* AXVoiceCallbackFn) (void *)
 
typedef void(* AXVoiceCallbackExFn) (void *, uint32_t, uint32_t)
 

Enumerations

enum  AX_VOICE_FORMAT {
  AX_VOICE_FORMAT_ADPCM = 0 ,
  AX_VOICE_FORMAT_LPCM16 = 10 ,
  AX_VOICE_FORMAT_LPCM8 = 25
}
 
enum  AX_VOICE_LOOP {
  AX_VOICE_LOOP_DISABLED = 0 ,
  AX_VOICE_LOOP_ENABLED = 1
}
 
enum  AX_VOICE_RENDERER {
  AX_VOICE_RENDERER_DSP = 0 ,
  AX_VOICE_RENDERER_CPU = 1 ,
  AX_VOICE_RENDERER_AUTO = 2
}
 
enum  AX_VOICE_RATIO_RESULT {
  AX_VOICE_RATIO_RESULT_SUCCESS = 0 ,
  AX_VOICE_RATIO_RESULT_LESS_THAN_ZERO = -1 ,
  AX_VOICE_RATIO_RESULT_GREATER_THAN_SOMETHING = -2
}
 
enum  AX_VOICE_SRC_TYPE {
  AX_VOICE_SRC_TYPE_NONE = 0 ,
  AX_VOICE_SRC_TYPE_LINEAR = 1 ,
  AX_VOICE_SRC_TYPE_UNK0 = 2 ,
  AX_VOICE_SRC_TYPE_UNK1 = 3 ,
  AX_VOICE_SRC_TYPE_UNK2 = 4
}
 
enum  AX_VOICE_STATE {
  AX_VOICE_STATE_STOPPED = 0 ,
  AX_VOICE_STATE_PLAYING = 1
}
 
enum  AX_VOICE_TYPE { AX_VOICE_TYPE_UNKNOWN }
 

Functions

int32_t AXVoiceBegin (AXVoice *v)
 
int32_t AXVoiceEnd (AXVoice *v)
 
AXVoiceAXAcquireVoice (uint32_t priority, AXVoiceCallbackFn callback, void *userContext)
 
AXVoiceAXAcquireVoiceEx (uint32_t priority, AXVoiceCallbackExFn callback, void *userContext)
 
BOOL AXCheckVoiceOffsets (AXVoiceOffsets *offsets)
 
void AXFreeVoice (AXVoice *voice)
 
uint32_t AXGetMaxVoices ()
 
uint32_t AXGetVoiceCurrentOffsetEx (AXVoice *voice, const void *samples)
 
uint32_t AXGetVoiceLoopCount (AXVoice *voice)
 
void AXGetVoiceOffsets (AXVoice *voice, AXVoiceOffsets *offsets)
 
BOOL AXIsVoiceRunning (AXVoice *voice)
 
void AXSetVoiceAdpcm (AXVoice *voice, AXVoiceAdpcm *adpcm)
 
void AXSetVoiceAdpcmLoop (AXVoice *voice, AXVoiceAdpcmLoopData *loopData)
 
void AXSetVoiceCurrentOffset (AXVoice *voice, uint32_t offset)
 
AXResult AXSetVoiceDeviceMix (AXVoice *voice, AXDeviceType type, uint32_t id, AXVoiceDeviceMixData *mixData)
 
void AXSetVoiceEndOffset (AXVoice *voice, uint32_t offset)
 
void AXSetVoiceEndOffsetEx (AXVoice *voice, uint32_t offset, const void *samples)
 
AXResult AXSetVoiceInitialTimeDelay (AXVoice *voice, uint16_t delay)
 
void AXSetVoiceLoopOffset (AXVoice *voice, uint32_t offset)
 
void AXSetVoiceLoopOffsetEx (AXVoice *voice, uint32_t offset, const void *samples)
 
void AXSetVoiceLoop (AXVoice *voice, AXVoiceLoop loop)
 
void AXSetVoiceOffsets (AXVoice *voice, AXVoiceOffsets *offsets)
 
void AXSetVoicePriority (AXVoice *voice, uint32_t priority)
 
void AXSetVoiceRmtIIRCoefs (AXVoice *voice, uint16_t filter,...)
 
void AXSetVoiceSrc (AXVoice *voice, AXVoiceSrc *src)
 
AXVoiceSrcRatioResult AXSetVoiceSrcRatio (AXVoice *voice, float ratio)
 
void AXSetVoiceSrcType (AXVoice *voice, AXVoiceSrcType type)
 
void AXSetVoiceState (AXVoice *voice, AXVoiceState state)
 
void AXSetVoiceType (AXVoice *voice, AXVoiceType type)
 
void AXSetVoiceVe (AXVoice *voice, AXVoiceVeData *veData)
 
void AXSetVoiceVeDelta (AXVoice *voice, int16_t delta)
 

Detailed Description


Data Structure Documentation

◆ AXVoiceLink

struct AXVoiceLink

Definition at line 99 of file voice.h.

Data Fields
AXVoice * next
AXVoice * prev

◆ AXVoiceOffsets

struct AXVoiceOffsets

Definition at line 108 of file voice.h.

Data Fields
AXVoiceFormat dataType
AXVoiceLoop loopingEnabled
uint32_t loopOffset
uint32_t endOffset
uint32_t currentOffset
const void * data

◆ AXVoice

struct AXVoice

Definition at line 125 of file voice.h.

Data Fields
uint32_t index The index of this voice out of the total voices.
AXVoiceState state Current play state of this voice.
uint32_t volume Current volume of this voice.
AXVoiceRenderer renderer The renderer to use for this voice.
AXVoiceLink link this is a link used in the stack, we do this in host-memory currently
AXVoice * cbNext A link to the next callback to invoke.
uint32_t priority The priority of this voice used for force-acquiring a voice.
AXVoiceCallbackFn callback The callback to call if this is force-free'd by another acquire.
void * userContext The user context to send to the callbacks.
uint32_t syncBits A bitfield representing different things needing to be synced.
AXVoiceOffsets offsets The current offset data!
AXVoiceCallbackExFn callbackEx An extended version of the callback above.
uint32_t callbackReason The reason for the callback being invoked.
float unk0
float unk1

◆ AXVoiceDeviceBusMixData

struct AXVoiceDeviceBusMixData

Definition at line 188 of file voice.h.

Data Fields
uint16_t volume
int16_t delta

◆ AXVoiceDeviceMixData

struct AXVoiceDeviceMixData

Definition at line 197 of file voice.h.

Data Fields
AXVoiceDeviceBusMixData bus[4]

◆ AXVoiceVeData

struct AXVoiceVeData

Definition at line 204 of file voice.h.

Data Fields
uint16_t volume
int16_t delta

◆ AXVoiceAdpcmLoopData

struct AXVoiceAdpcmLoopData

Definition at line 213 of file voice.h.

Data Fields
uint16_t predScale
int16_t prevSample[2]

◆ AXVoiceAdpcm

struct AXVoiceAdpcm

Definition at line 222 of file voice.h.

Data Fields
int16_t coefficients[16]
uint16_t gain
uint16_t predScale
int16_t prevSample[2]

◆ AXVoiceSrc

struct AXVoiceSrc

AXVoice Sample Rate Converter.

Definition at line 240 of file voice.h.

Data Fields
uint32_t ratio Playback rate, fixed 16.16.
uint16_t currentOffsetFrac Used by the resampler, fixed 0.16.
int16_t lastSample[4]

Typedef Documentation

◆ AXVoice

typedef struct AXVoice AXVoice

Definition at line 1 of file voice.h.

◆ AXVoiceAdpcmLoopData

Definition at line 1 of file voice.h.

◆ AXVoiceAdpcm

typedef struct AXVoiceAdpcm AXVoiceAdpcm

Definition at line 1 of file voice.h.

◆ AXVoiceDeviceBusMixData

Definition at line 1 of file voice.h.

◆ AXVoiceDeviceMixData

Definition at line 1 of file voice.h.

◆ AXVoiceLink

typedef struct AXVoiceLink AXVoiceLink

Definition at line 1 of file voice.h.

◆ AXVoiceOffsets

Definition at line 1 of file voice.h.

◆ AXVoiceSrc

typedef struct AXVoiceSrc AXVoiceSrc

Definition at line 1 of file voice.h.

◆ AXVoiceVeData

typedef struct AXVoiceVeData AXVoiceVeData

Definition at line 1 of file voice.h.

◆ AXVoiceFormat

typedef uint16_t AXVoiceFormat

A value from enum AX_VOICE_FORMAT.

Definition at line 28 of file voice.h.

◆ AXVoiceLoop

typedef uint16_t AXVoiceLoop

A value from enum AX_VOICE_LOOP.

Definition at line 31 of file voice.h.

◆ AXVoiceSrcType

typedef uint32_t AXVoiceSrcType

A value from enum AX_VOICE_SRC_TYPE.

Definition at line 34 of file voice.h.

◆ AXVoiceState

typedef uint32_t AXVoiceState

A value from enum AX_VOICE_STATE.

Definition at line 37 of file voice.h.

◆ AXVoiceRenderer

typedef uint32_t AXVoiceRenderer

A value from enum AX_VOICE_RENDERER.

Definition at line 40 of file voice.h.

◆ AXVoiceSrcRatioResult

typedef int32_t AXVoiceSrcRatioResult

A value from enum AX_VOICE_RATIO_RESULT.

Definition at line 43 of file voice.h.

◆ AXVoiceType

typedef uint32_t AXVoiceType

A value from enum AX_VOICE_TYPE.

Definition at line 46 of file voice.h.

◆ AXVoiceCallbackFn

typedef void(* AXVoiceCallbackFn) (void *)

Definition at line 48 of file voice.h.

◆ AXVoiceCallbackExFn

typedef void(* AXVoiceCallbackExFn) (void *, uint32_t, uint32_t)

Definition at line 49 of file voice.h.

Enumeration Type Documentation

◆ AX_VOICE_FORMAT

Enumerator
AX_VOICE_FORMAT_ADPCM 
AX_VOICE_FORMAT_LPCM16 
AX_VOICE_FORMAT_LPCM8 

Definition at line 51 of file voice.h.

◆ AX_VOICE_LOOP

Enumerator
AX_VOICE_LOOP_DISABLED 
AX_VOICE_LOOP_ENABLED 

Definition at line 58 of file voice.h.

◆ AX_VOICE_RENDERER

Enumerator
AX_VOICE_RENDERER_DSP 
AX_VOICE_RENDERER_CPU 
AX_VOICE_RENDERER_AUTO 

Definition at line 64 of file voice.h.

◆ AX_VOICE_RATIO_RESULT

Enumerator
AX_VOICE_RATIO_RESULT_SUCCESS 
AX_VOICE_RATIO_RESULT_LESS_THAN_ZERO 
AX_VOICE_RATIO_RESULT_GREATER_THAN_SOMETHING 

Definition at line 71 of file voice.h.

◆ AX_VOICE_SRC_TYPE

Enumerator
AX_VOICE_SRC_TYPE_NONE 
AX_VOICE_SRC_TYPE_LINEAR 
AX_VOICE_SRC_TYPE_UNK0 
AX_VOICE_SRC_TYPE_UNK1 
AX_VOICE_SRC_TYPE_UNK2 

Definition at line 78 of file voice.h.

◆ AX_VOICE_STATE

Enumerator
AX_VOICE_STATE_STOPPED 
AX_VOICE_STATE_PLAYING 

Definition at line 87 of file voice.h.

◆ AX_VOICE_TYPE

Enumerator
AX_VOICE_TYPE_UNKNOWN 

Definition at line 93 of file voice.h.

Function Documentation

◆ AXVoiceBegin()

int32_t AXVoiceBegin ( AXVoice v)

◆ AXVoiceEnd()

int32_t AXVoiceEnd ( AXVoice v)

◆ AXAcquireVoice()

AXVoice* AXAcquireVoice ( uint32_t  priority,
AXVoiceCallbackFn  callback,
void *  userContext 
)

◆ AXAcquireVoiceEx()

AXVoice* AXAcquireVoiceEx ( uint32_t  priority,
AXVoiceCallbackExFn  callback,
void *  userContext 
)

◆ AXCheckVoiceOffsets()

BOOL AXCheckVoiceOffsets ( AXVoiceOffsets offsets)

◆ AXFreeVoice()

void AXFreeVoice ( AXVoice voice)

◆ AXGetMaxVoices()

uint32_t AXGetMaxVoices ( )

◆ AXGetVoiceCurrentOffsetEx()

uint32_t AXGetVoiceCurrentOffsetEx ( AXVoice voice,
const void *  samples 
)

◆ AXGetVoiceLoopCount()

uint32_t AXGetVoiceLoopCount ( AXVoice voice)

◆ AXGetVoiceOffsets()

void AXGetVoiceOffsets ( AXVoice voice,
AXVoiceOffsets offsets 
)

◆ AXIsVoiceRunning()

BOOL AXIsVoiceRunning ( AXVoice voice)

◆ AXSetVoiceAdpcm()

void AXSetVoiceAdpcm ( AXVoice voice,
AXVoiceAdpcm adpcm 
)

◆ AXSetVoiceAdpcmLoop()

void AXSetVoiceAdpcmLoop ( AXVoice voice,
AXVoiceAdpcmLoopData loopData 
)

◆ AXSetVoiceCurrentOffset()

void AXSetVoiceCurrentOffset ( AXVoice voice,
uint32_t  offset 
)

◆ AXSetVoiceDeviceMix()

AXResult AXSetVoiceDeviceMix ( AXVoice voice,
AXDeviceType  type,
uint32_t  id,
AXVoiceDeviceMixData mixData 
)

◆ AXSetVoiceEndOffset()

void AXSetVoiceEndOffset ( AXVoice voice,
uint32_t  offset 
)

◆ AXSetVoiceEndOffsetEx()

void AXSetVoiceEndOffsetEx ( AXVoice voice,
uint32_t  offset,
const void *  samples 
)

◆ AXSetVoiceInitialTimeDelay()

AXResult AXSetVoiceInitialTimeDelay ( AXVoice voice,
uint16_t  delay 
)

◆ AXSetVoiceLoopOffset()

void AXSetVoiceLoopOffset ( AXVoice voice,
uint32_t  offset 
)

◆ AXSetVoiceLoopOffsetEx()

void AXSetVoiceLoopOffsetEx ( AXVoice voice,
uint32_t  offset,
const void *  samples 
)

◆ AXSetVoiceLoop()

void AXSetVoiceLoop ( AXVoice voice,
AXVoiceLoop  loop 
)

◆ AXSetVoiceOffsets()

void AXSetVoiceOffsets ( AXVoice voice,
AXVoiceOffsets offsets 
)

◆ AXSetVoicePriority()

void AXSetVoicePriority ( AXVoice voice,
uint32_t  priority 
)

◆ AXSetVoiceRmtIIRCoefs()

void AXSetVoiceRmtIIRCoefs ( AXVoice voice,
uint16_t  filter,
  ... 
)

◆ AXSetVoiceSrc()

void AXSetVoiceSrc ( AXVoice voice,
AXVoiceSrc src 
)

◆ AXSetVoiceSrcRatio()

AXVoiceSrcRatioResult AXSetVoiceSrcRatio ( AXVoice voice,
float  ratio 
)

◆ AXSetVoiceSrcType()

void AXSetVoiceSrcType ( AXVoice voice,
AXVoiceSrcType  type 
)

◆ AXSetVoiceState()

void AXSetVoiceState ( AXVoice voice,
AXVoiceState  state 
)

◆ AXSetVoiceType()

void AXSetVoiceType ( AXVoice voice,
AXVoiceType  type 
)

◆ AXSetVoiceVe()

void AXSetVoiceVe ( AXVoice voice,
AXVoiceVeData veData 
)

◆ AXSetVoiceVeDelta()

void AXSetVoiceVeDelta ( AXVoice voice,
int16_t  delta 
)