OpenSNES
Modern Open-Source SNES Development SDK
Loading...
Searching...
No Matches
Initialization

Functions

void audioInit (void)
 Initialize the audio system.
u8 audioIsReady (void)
 Check if audio system is ready.
void audioUpdate (void)
 Process audio updates.

Detailed Description

Function Documentation

◆ audioInit()

void audioInit ( void )

Initialize the audio system.

Uploads the SPC700 driver (built into the lib as audio_driver_blob) through the IPL boot-ROM protocol and starts it, then verifies the command channel with a PING. Call once during game initialization; check audioIsReady() afterwards.

Note
Blocks for the duration of the upload (~a frame for the small driver). Interrupts stay enabled; the NMI handler does not touch the APU ports.

◆ audioIsReady()

u8 audioIsReady ( void )

Check if audio system is ready.

Returns
Non-zero if ready, 0 if still initializing

◆ audioUpdate()

void audioUpdate ( void )

Process audio updates.

Call once per frame in your main loop. Handles command queue processing and streaming.