Alchemy
Loading...
Searching...
No Matches

audio_engine_symbols.h File Reference

The sound driver's command masks, cue controls and the routines and globals it shares with the engine. More...

Go to the source code of this file.

Macros

#define AUDIO_INITIAL_MODE   0x0097F800

Enumerations

enum  AudioCommandMask { AUDIO_COMMAND_TOGGLE = 0x80 , AUDIO_COMMAND_MASK = 0x7f }
enum  AudioCueControl {
  AUDIO_CUE_ID_MASK = 0xfff , AUDIO_CUE_FLAGS_MASK = 0xf000 , AUDIO_CUE_START_SILENT = 0x1000 , AUDIO_CUE_FADE_BGM = 17 ,
  AUDIO_CUE_KEEP_BGM = 18 , AUDIO_CUE_FADE_SLOT3 = 0x121 , AUDIO_JINGLE_FIRST = 80 , AUDIO_SONG_FIRST = 100
}

Functions

s32 Sound_LoadPresetParameters (s32 preset)
 Copies the mixer code for sound preset preset (0 to 4; anything else is 0) from ROM into IwramSoundPresetCode.
void Bios_CpuSet (const void *source, void *destination, u32 control)

Variables

struct LzPackWork * gFlash_Handler3
struct SoundPlayer gMusicPlayerBgm
struct SoundPlayer gMusicPlayerFanfare
struct SoundPlayer gSound_Player3
u16 gMusicPlayerVolumes [8]
u8 gMusicRestoreDelay
u16 gMusicVolume
u16 gMusicVolumeTarget
u16 gMusicVolumeStep
u16 gMusicPitch
u16 gMusicPitchTarget
u16 gMusicPitchStep
u8 gAudioSecondaryState
u8 gAudio_CommandMask

Detailed Description

The sound driver's command masks, cue controls and the routines and globals it shares with the engine.

Definition in file audio_engine_symbols.h.

Macro Definition Documentation

◆ AUDIO_INITIAL_MODE

#define AUDIO_INITIAL_MODE   0x0097F800

Definition at line 15 of file audio_engine_symbols.h.

Referenced by Audio_Initialize().

Enumeration Type Documentation

◆ AudioCommandMask

Enumerator
AUDIO_COMMAND_TOGGLE 
AUDIO_COMMAND_MASK 

Definition at line 10 of file audio_engine_symbols.h.

◆ AudioCueControl

Enumerator
AUDIO_CUE_ID_MASK 
AUDIO_CUE_FLAGS_MASK 
AUDIO_CUE_START_SILENT 
AUDIO_CUE_FADE_BGM 
AUDIO_CUE_KEEP_BGM 
AUDIO_CUE_FADE_SLOT3 
AUDIO_JINGLE_FIRST 
AUDIO_SONG_FIRST 

Definition at line 17 of file audio_engine_symbols.h.

Function Documentation

◆ Sound_LoadPresetParameters()

s32 Sound_LoadPresetParameters ( s32 preset)

Copies the mixer code for sound preset preset (0 to 4; anything else is 0) from ROM into IwramSoundPresetCode.

Called by the battle and the link lobby for their music, and by the audio test. Always returns 0.

Definition at line 439 of file frame.c.

◆ Bios_CpuSet()

void Bios_CpuSet ( const void * source,
void * destination,
u32 control )

Variable Documentation

◆ gFlash_Handler3

struct LzPackWork* gFlash_Handler3
extern

◆ gMusicPlayerBgm

◆ gMusicPlayerFanfare

struct SoundPlayer gMusicPlayerFanfare
extern

◆ gSound_Player3

struct SoundPlayer gSound_Player3
extern

Referenced by AudioCommand_Play(), and Bios_CpuSet().

◆ gMusicPlayerVolumes

u16 gMusicPlayerVolumes[8]
extern

◆ gMusicRestoreDelay

◆ gMusicVolume

◆ gMusicVolumeTarget

◆ gMusicVolumeStep

◆ gMusicPitch

◆ gMusicPitchTarget

◆ gMusicPitchStep

◆ gAudioSecondaryState

◆ gAudio_CommandMask