Sndcore2.rpl

From WiiUBrew
Jump to: navigation, search

sndcore2 is the core RPL for the Sound-2 library, consisting of the core AX functions. Other libraries like MIX, SYN, and SEQ are included in snduser2.rpl.

Contents

Functions

Initialization

Name Prototype Description
AXInit void AXInit(void); DEPRECATED, use AXInitWithParams
AXInitWithParams AXINIT_ERROR AXInitWithParams(AXInitParams* params); Initializes the AX library for use.
AXIsInit bool AXIsInit(void); Checks if AX library is initialized.
AXQuit void AXQuit(void); Shuts down the AX library.
AXIsAudioOutReady bool AXIsAudioOutReady(void); Checks if Audio Out is ready.
AXGetCurrentParams void AXGetCurrentParams(AXInitParams* currParams); Gets the current parameters
AXGetInputSamplesPerFrame uint32_t AXGetInputSamplesPerFrame(void); Gets the number of samples per frame
AXGetInputSamplesPerSec uint32_t AXGetInputSamplesPerSec(void); Gets the number of samples per second

Structures

Initialization

Name Prototype
AXInitWithParams
AXGetCurrentParams
typedef enum {
    AXINIT_OK = 0,
    AXINIT_ALREADY_INIT = -1,
    AXINIT_INVALID_RENDERER = -2,
    AXINIT_INVALID_FRAMESIZE = -3,
    AXINIT_INVALID_PIPELINE = -4
} AXINIT_ERROR;
 
typedef enum {
    AX_32K_RENDERER = 0,
    AX_48K_RENDERER = 1
} AX_RENDERER_FREQ;
 
typedef enum {
    AX_3MS_FRAME = 0
} AX_FRAMESIZE;
 
typedef enum {
    AX_SINGLE_PIPELINE = 0,
    AX_FOURSTAGE_PIPELINE = 1
} AX_PIPELINE;
 
typedef struct {
    AX_RENDERER_FREQ rendererFreq;
    AX_FRAMESIZE     frameSize;
    AX_PIPELINE      pipeline;
} AXInitParams;

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox