wut  v1.7.0
Wii U Toolchain
Data Structures | Typedefs | Enumerations | Functions
voice.h File Reference
#include <wut.h>
#include "device.h"
#include "result.h"
Include dependency graph for voice.h:

Go to the source code of this file.

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)