#include <ASoundManager.h>
Classes | |
struct | CameraData |
struct | Category |
struct | ChannelRef |
struct | ChannelRefLegacy |
class | Cue |
struct | EventParameters |
struct | S2 |
struct | S4 |
class | SoundEvent |
struct | SoundEventListSortResults |
struct | SoundEventManager |
struct | SoundEventSortResults |
struct | StreamRef |
Public Types | |
enum | SOUNDEVENT : TUINT { SOUNDEVENT_PlayAudio , SOUNDEVENT_PlayStream , SOUNDEVENT_StopAudio , SOUNDEVENT_UpdateChannelVolume , SOUNDEVENT_UpdateChannelFrequency , SOUNDEVENT_UNUSED1 , SOUNDEVENT_UpdateChannelPosition , SOUNDEVENT_UNUSED2 , SOUNDEVENT_UNUSED3 , SOUNDEVENT_NUMOF } |
using | ThisClass = ASoundManager |
using | BaseClass = Toshi::TTask |
using | SoundEventList = Toshi::T2DListNodeWrapper<Toshi::T2SortedList<SoundEvent, Toshi::T2DList<SoundEvent>, SoundEventSortResults>> |
using | PauseListener = Toshi::TListener<Toshi::TSystemManager, TBOOL, ASoundManager> |
Public Member Functions | |
virtual Toshi::TClass * | GetClass () override |
ASoundManager () | |
~ASoundManager () | |
virtual TBOOL | Reset () override |
virtual TBOOL | OnCreate () override |
virtual TBOOL | OnUpdate (TFLOAT a_fDeltaTime) override |
virtual void | OnDestroy () override |
TINT | PlayCue (ASoundId a_iSound) |
TINT | PlayCueEx (ASoundId a_iSound, TFLOAT a_fVolume, TBOOL a_bFlag, TFLOAT a_fDelay, TINT a_iTrack) |
void | StopCue (TINT &a_rCueIndex) |
void | StopCueAsync (TINT &a_rCueIndex, TFLOAT a_fDelay) |
void | PauseAllCues (TBOOL a_bPause) |
TINT | GetAvailableCueIndex () |
TBOOL | IsCuePlaying (TINT a_iCueIndex) |
void | CancelCueEvents (Cue *a_pCue, SOUNDEVENT a_eEventType) |
AWaveBank * | FindWaveBank (const Toshi::TPString8 &a_rcName) |
TBOOL | LoadWaveBanksInfo (const TCHAR *a_szFileName) |
TBOOL | LoadWaveBankSamples (const Toshi::TPString8 &a_rcName, AWaveBank::LOADFLAGS a_eLoadFlags, TINT a_iBufferSize) |
ASoundBank * | FindSoundBank (const Toshi::TPString8 &a_rcName) |
TBOOL | LoadSoundBank (const Toshi::TPString8 &a_rcName, TBOOL a_bSimpleSound, TBOOL a_bLoadImmediately) |
void | LoadSoundBankSamples (const Toshi::TPString8 &a_rcName) |
Static Public Member Functions | |
static Toshi::TObject * | CreateTObject () |
static Toshi::TObject * | CreateTObjectInPlace (void *a_pPtr) |
static void | InitialiseClass () |
static void | DeinitialiseClass () |
static TFORCEINLINE Toshi::TClass * | GetClassStatic () |
Public Attributes | |
friend | AWaveBank |
Static Public Attributes | |
static constexpr Toshi::TClass * | PARENTCLASS = & Toshi::TTask::ms_oClass |
static Toshi::TClass | ms_oClass = Toshi::TClass( "ASoundManager", ASoundManager::PARENTCLASS, ASoundManager::CreateTObject, ASoundManager::CreateTObjectInPlace, ASoundManager::InitialiseClass, ASoundManager::DeinitialiseClass, 0, 1, sizeof( ASoundManager ), alignof( ASoundManager ) ) |
static constexpr const TCHAR * | SOUNDS_BASE_DIRECTORY = "Data/Sound/" |
static constexpr TUINT | MAX_NUM_CATEGORIES = 16 |
static TBOOL | ms_bShouldUpdateLoadingScreen = false |
Definition at line 20 of file ASoundManager.h.
using ASoundManager::BaseClass = Toshi::TTask |
Definition at line 24 of file ASoundManager.h.
using ASoundManager::PauseListener = Toshi::TListener<Toshi::TSystemManager, TBOOL, ASoundManager> |
Definition at line 243 of file ASoundManager.h.
using ASoundManager::SoundEventList = Toshi::T2DListNodeWrapper<Toshi::T2SortedList<SoundEvent, Toshi::T2DList<SoundEvent>, SoundEventSortResults>> |
Definition at line 153 of file ASoundManager.h.
Definition at line 24 of file ASoundManager.h.
enum ASoundManager::SOUNDEVENT : TUINT |
Definition at line 44 of file ASoundManager.h.
ASoundManager::ASoundManager | ( | ) |
Definition at line 31 of file ASoundManager.cpp.
ASoundManager::~ASoundManager | ( | ) |
Definition at line 52 of file ASoundManager.cpp.
void ASoundManager::CancelCueEvents | ( | Cue * | a_pCue, |
SOUNDEVENT | a_eEventType ) |
Definition at line 453 of file ASoundManager.cpp.
|
static |
Definition at line 26 of file ASoundManager.cpp.
|
static |
Definition at line 26 of file ASoundManager.cpp.
|
static |
Definition at line 26 of file ASoundManager.cpp.
ASoundBank * ASoundManager::FindSoundBank | ( | const Toshi::TPString8 & | a_rcName | ) |
Definition at line 1073 of file ASoundManager.cpp.
AWaveBank * ASoundManager::FindWaveBank | ( | const Toshi::TPString8 & | a_rcName | ) |
Definition at line 471 of file ASoundManager.cpp.
TINT ASoundManager::GetAvailableCueIndex | ( | ) |
Definition at line 352 of file ASoundManager.cpp.
|
overridevirtual |
Definition at line 26 of file ASoundManager.cpp.
|
inlinestatic |
Definition at line 24 of file ASoundManager.h.
|
static |
Definition at line 26 of file ASoundManager.cpp.
Definition at line 378 of file ASoundManager.cpp.
TBOOL ASoundManager::LoadSoundBank | ( | const Toshi::TPString8 & | a_rcName, |
TBOOL | a_bSimpleSound, | ||
TBOOL | a_bLoadImmediately ) |
Definition at line 1084 of file ASoundManager.cpp.
void ASoundManager::LoadSoundBankSamples | ( | const Toshi::TPString8 & | a_rcName | ) |
Definition at line 1097 of file ASoundManager.cpp.
TBOOL ASoundManager::LoadWaveBankSamples | ( | const Toshi::TPString8 & | a_rcName, |
AWaveBank::LOADFLAGS | a_eLoadFlags, | ||
TINT | a_iBufferSize ) |
Definition at line 1058 of file ASoundManager.cpp.
Definition at line 1012 of file ASoundManager.cpp.
|
overridevirtual |
Definition at line 69 of file ASoundManager.cpp.
|
overridevirtual |
Definition at line 231 of file ASoundManager.cpp.
Definition at line 97 of file ASoundManager.cpp.
void ASoundManager::PauseAllCues | ( | TBOOL | a_bPause | ) |
Definition at line 966 of file ASoundManager.cpp.
Definition at line 240 of file ASoundManager.cpp.
TINT ASoundManager::PlayCueEx | ( | ASoundId | a_iSound, |
TFLOAT | a_fVolume, | ||
TBOOL | a_bFlag, | ||
TFLOAT | a_fDelay, | ||
TINT | a_iTrack ) |
Definition at line 245 of file ASoundManager.cpp.
|
overridevirtual |
Definition at line 63 of file ASoundManager.cpp.
void ASoundManager::StopCue | ( | TINT & | a_rCueIndex | ) |
Definition at line 347 of file ASoundManager.cpp.
Definition at line 421 of file ASoundManager.cpp.
friend ASoundManager::AWaveBank |
Definition at line 248 of file ASoundManager.h.
|
staticconstexpr |
Definition at line 246 of file ASoundManager.h.
|
inlinestatic |
Definition at line 376 of file ASoundManager.h.
|
static |
Definition at line 24 of file ASoundManager.h.
|
staticconstexpr |
Definition at line 24 of file ASoundManager.h.
|
staticconstexpr |
Definition at line 245 of file ASoundManager.h.