The SGADE Documentation

the SGADE The Socrates Gameboy Advance Development Engine

The SGADE is a development library for the Nintendo Gameboy Advance. It's free for all uses and is distributed without guarantees. For more information visit the SGADE page.


Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

SoSound

Module for all sound handling. More...

Files

file  SoSound.c
file  SoSound.h

Functions

void SoSoundInitialize (void)
 Initializes the sound system.

void SoSoundPlayDirectSoundA (s8 *a_WaveData, u32 a_Timer, u32 a_DMAChannel, u32 a_Frequency)
 This function plays a sample at a given frequency on direct sound channel A.


Detailed Description

Module for all sound handling.

Singleton

This module is still in experimental phase. Only use when you're absolutely sure about what you are doing.


Function Documentation

void SoSoundInitialize void   
 

Initializes the sound system.

This is the first SoSound function you should call.

void SoSoundPlayDirectSoundA s8   a_WaveData,
u32    a_Timer,
u32    a_DMAChannel,
u32    a_Frequency
 

This function plays a sample at a given frequency on direct sound channel A.

Parameters:
a_WaveData  8 bit signed wave data.
a_Timer  Which timer to use, either 1 or 2.
a_DMAChannel  Which DMA channel to use, either 1 or 2.
a_Frequency  Frequency you want to use.

Todo:
Give more detail on this function.

Finish this entire function even. Doh! This was just a test.


Copyright 2002 by the SGADE authors. See SoLicense.h or Visit the SGADE page for more information.