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
3
void
SFXComponent::destroy
()
4
{
5
stopSFX
();
6
}
7
8
void
SFXComponent::registerSFX
(
SFX
sfx)
9
{
10
am
.registerSFX(sfx);
11
}
12
13
void
SFXComponent::playSFX
(
SFX
sfx,
int
volume,
int
panning)
14
{
15
stopSFX
();
16
am
.playSFX(sfx, volume, panning);
17
}
18
19
void
SFXComponent::stopSFX
()
20
{
21
am
.stopSFX();
22
}
SFX
SFX
SFX wrapper enums.
Definition
AudioTypes.hpp:33
SFXComponent.hpp
Orchestrates sfx.
SFXComponent::stopSFX
void stopSFX()
Stops all SFX audio from playing.
Definition
SFXComponent.cpp:19
SFXComponent::registerSFX
void registerSFX(SFX sfx)
Register the SFX to use.
Definition
SFXComponent.cpp:8
SFXComponent::playSFX
void playSFX(SFX sfx, int volume=127, int panning=64)
Play the specified SFX, if registered.
Definition
SFXComponent.cpp:13
SFXComponent::am
AudioManager & am
Definition
SFXComponent.hpp:65
SFXComponent::destroy
void destroy() override
Automatically stops all SFX audio from playing.
Definition
SFXComponent.cpp:3
source
components
SFXComponent.cpp
Generated by
1.15.0