Skip to Content
The Alchemy Project

include/sound/stubs.h

The stub calls into the sound module, as the other modules' code calls them.

Included by field_engine_run.c, system_start_up.c and sound.h.

Functions

NameDescription
voidsySoundPlayStub (Sint32 id)Plays a sound number: a fade control, a sound effect, a jingle or music.
Sint32sySoundGetBGMRestoreDelayStub (void)Returns nonzero while a jingle holds the music.
Sint32sySoundGetCurrentBGMStub (void)Returns the music sySoundPlay last chose.
voidsySoundUpdateBGMRampsStub (void)Brings the music back after a jingle and steps its volume, tempo and pitch ramps; called once a VBlank.
voidsySoundInitStub (void)Starts the sound driver and resets the music's ramps.

Description

The stub calls into the sound module, as the other modules' code calls them.

Functions in detail

sySoundPlayStub

void sySoundPlayStub(Sint32 id)

Plays a sound number: a fade control, a sound effect, a jingle or music.

Referenced by btActionRunBuild(), btAwardSpoils(), btEffectEndCanvasLayer(), btEffectRunAnnihilation(), btEffectRunAstralBlast(), btEffectRunAtalanta(), btEffectRunAzul(), btEffectRunBackstab(), btEffectRunBallLightning(), btEffectRunBind(), btEffectRunBladeRain(), btEffectRunBolt(), btEffectRunBoreas(), btEffectRunBreak(), btEffectRunBreaths(), btEffectRunBubbleColumn(), btEffectRunBurstShower(), btEffectRunCanvasBurst(), btEffectRunCards(), btEffectRunCastingImpact(), btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunCoatlicue(), btEffectRunCondemn(), btEffectRunCool(), btEffectRunCrescentSlash(), btEffectRunCriticalHit(), btEffectRunCruelRuin(), btEffectRunCrystal(), btEffectRunCurse(), btEffectRunCybele(), btEffectRunDaedalus(), btEffectRunDaedalusStrike(), btEffectRunDeathPlunge(), btEffectRunDiamondBerg(), btEffectRunDjinnBeams(), btEffectRunDjinnHeal(), btEffectRunDjinniCharge(), btEffectRunDjinniEntrance(), btEffectRunDjinniSign(), btEffectRunDouse(), btEffectRunDragonCloud(), btEffectRunDragonFire(), btEffectRunDrainMotes(), btEffectRunEclipse(), btEffectRunElementBurst(), btEffectRunElementCards(), btEffectRunElementPillar(), btEffectRunEruption(), btEffectRunFallingSword() and 289 more.

Definition at line 9 of file stubs.h.

sySoundGetBGMRestoreDelayStub

Sint32 sySoundGetBGMRestoreDelayStub(void)

Returns nonzero while a jingle holds the music.

Referenced by mnDjinnShowJoinedMessage(), mnPartyShowJoinedMessage(), mnPartyShowPairJoinedMessage(), mnSoundWaitForJingle(), mnSummonShowLearnedMessage(), mnTextCheckPauseSkipped() and mnTextCheckTextDismissed().

Definition at line 12 of file stubs.h.

sySoundGetCurrentBGMStub

Sint32 sySoundGetCurrentBGMStub(void)

Returns the music sySoundPlay last chose.

Referenced by fdEngineRun().

Definition at line 15 of file stubs.h.

sySoundUpdateBGMRampsStub

void sySoundUpdateBGMRampsStub(void)

Brings the music back after a jingle and steps its volume, tempo and pitch ramps; called once a VBlank.

Referenced by syVBlankHandler() and syWaitForVBlankInterrupt().

Definition at line 18 of file stubs.h.

sySoundInitStub

void sySoundInitStub(void)

Starts the sound driver and resets the music's ramps.

Referenced by syInit().

Definition at line 20 of file stubs.h.