persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
SFXComponent.cpp
Go to the documentation of this file.
1#include "SFXComponent.hpp"
2
4{
5 stopSFX();
6}
7
9{
10 am.registerSFX(sfx);
11}
12
13void SFXComponent::playSFX(SFX sfx, int volume, int panning)
14{
15 stopSFX();
16 am.playSFX(sfx, volume, panning);
17}
18
20{
21 am.stopSFX();
22}
SFX
SFX wrapper enums.
Orchestrates sfx.
void stopSFX()
Stops all SFX audio from playing.
void registerSFX(SFX sfx)
Register the SFX to use.
void playSFX(SFX sfx, int volume=127, int panning=64)
Play the specified SFX, if registered.
AudioManager & am
void destroy() override
Automatically stops all SFX audio from playing.