In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Sndcore2.rpl

From WiiUBrew
Revision as of 01:57, 21 December 2015 by NWPlayer123 (talk | contribs) (Initial commit, plan to add a lot more)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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.

Functions

Initialization

Name Prototype Description
AXInit void AXInit(void); DEPRECATED, use AXInitWithParams
AXIsInit bool AXIsInit(void); Checks if AX library is initialized.
AXInitWithParams AXINIT_ERROR AXInitWithParams(AXInitParams* params); Initializes the AX library for use.
AXQuit void AXQuit(void); Shuts down the AX library.
AXGetRendererFreq AX_RENDERER_FREQ AXGetRendererFreq(void); Gets the renderer frequency.
AXIsAudioOutReady bool AXIsAudioOutReady(void); Checks if Audio Out is ready.

Structures

Initialization

Name Prototype
AXInitWithParams
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;