RetroArch
Classes | Typedefs | Enumerations | Functions
voice.h File Reference
#include <wiiu/types.h>
#include "device.h"
#include "result.h"
Include dependency graph for voice.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  AXVoiceOffsets
 
struct  AXVoiceLink
 
struct  AXVoice
 
struct  AXVoiceDeviceBusMixData
 
struct  AXVoiceDeviceMixData
 
struct  AXVoiceVeData
 
struct  AXVoiceAdpcmLoopData
 
struct  AXVoiceAdpcm
 
struct  AXVoiceSrc
 

Typedefs

typedef void(* AXVoiceCallbackFn) (void *)
 
typedef void(* AXVoiceCallbackExFn) (void *, uint32_t, uint32_t)
 
typedef uint16_t AXVoiceFormat
 
typedef uint16_t AXVoiceLoop
 
typedef uint32_t AXVoiceRenderer
 
typedef int32_t AXVoiceSrcRatioResult
 
typedef uint32_t AXVoiceSrcType
 
typedef uint32_t AXVoiceState
 
typedef uint32_t AXVoiceType
 
typedef struct AXVoice AXVoice
 

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

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)
 

Typedef Documentation

◆ AXVoice

typedef struct AXVoice AXVoice

◆ AXVoiceCallbackExFn

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

◆ AXVoiceCallbackFn

typedef void(* AXVoiceCallbackFn) (void *)

◆ AXVoiceFormat

◆ AXVoiceLoop

◆ AXVoiceRenderer

◆ AXVoiceSrcRatioResult

◆ AXVoiceSrcType

◆ AXVoiceState

◆ AXVoiceType

Enumeration Type Documentation

◆ AX_VOICE_FORMAT

Enumerator
AX_VOICE_FORMAT_ADPCM 
AX_VOICE_FORMAT_LPCM16 
AX_VOICE_FORMAT_LPCM8 

◆ AX_VOICE_LOOP

Enumerator
AX_VOICE_LOOP_DISABLED 
AX_VOICE_LOOP_ENABLED 

◆ AX_VOICE_RATIO_RESULT

Enumerator
AX_VOICE_RATIO_RESULT_SUCCESS 
AX_VOICE_RATIO_RESULT_LESS_THAN_ZERO 
AX_VOICE_RATIO_RESULT_GREATER_THAN_SOMETHING 

◆ AX_VOICE_RENDERER

Enumerator
AX_VOICE_RENDERER_DSP 
AX_VOICE_RENDERER_CPU 
AX_VOICE_RENDERER_AUTO 

◆ 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 

◆ AX_VOICE_STATE

Enumerator
AX_VOICE_STATE_STOPPED 
AX_VOICE_STATE_PLAYING 

◆ AX_VOICE_TYPE

Enumerator
AX_VOICE_TYPE_UNKNOWN 

Function Documentation

◆ 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 
)

◆ AXSetVoiceLoop()

void AXSetVoiceLoop ( AXVoice voice,
AXVoiceLoop  loop 
)

◆ AXSetVoiceLoopOffset()

void AXSetVoiceLoopOffset ( AXVoice voice,
uint32_t  offset 
)

◆ AXSetVoiceLoopOffsetEx()

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

◆ 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 
)