Loading...
Searching...
No Matches
Processing

Functions

void snesmodFlush (void)
 Wait for command queue to empty.
 
void snesmodProcess (void)
 Process audio commands.
 

Detailed Description

Function Documentation

◆ snesmodFlush()

void snesmodFlush ( void  )

Wait for command queue to empty.

Blocks until all queued commands have been processed. Useful before loading new modules.

◆ snesmodProcess()

void snesmodProcess ( void  )

Process audio commands.

Warning
This function MUST be called every frame!

Processes the command queue and handles streaming. Failure to call this regularly will cause:

  • Audio stuttering and dropouts
  • Command buffer overflow
  • Desynchronization with module playback

Call in your main loop or NMI handler:

while (1) {
// ... game logic
}
void WaitForVBlank(void)
Wait for next VBlank period.
void snesmodProcess(void)
Process audio commands.