NightFox’s Lib
Data Structures | Macros | Functions | Variables
nf_sound.h File Reference

Sound support functions. More...

#include <nds.h>

Data Structures

struct  NF_TYPE_RAWSOUND_INFO
 Struct that holds information about the loaded sound files. More...
 

Macros

#define NF_SLOTS_RAWSOUND   32
 Number of slot availables for raw sound effects.
 

Functions

void NF_InitRawSoundBuffers (void)
 Initialize all buffers and variables to load sound files. More...
 
void NF_ResetRawSoundBuffers (void)
 Resets all sound buffers and clears the data in them. More...
 
void NF_LoadRawSound (const char *file, u32 id, u32 freq, u32 format)
 Load a RAW file from the filesystem to RAM. More...
 
void NF_UnloadRawSound (u32 id)
 Deletes from RAM the sound file stored in the specified slot. More...
 
u32 NF_PlayRawSound (u32 id, u32 volume, u32 pan, bool loop, u32 loopfrom)
 Play the sound file loaded in the specified slot. More...
 

Variables

char * NF_BUFFER_RAWSOUND [NF_SLOTS_RAWSOUND]
 Buffers of all loaded sound files.
 
NF_TYPE_RAWSOUND_INFO NF_RAWSOUND [NF_SLOTS_RAWSOUND]
 Information of all sound effects.
 

Detailed Description

Sound support functions.