#include <AWaveBank.h>
Definition at line 10 of file AWaveBank.h.
◆ LOADFLAGS
◆ LOADFLAGS_
Enumerator |
---|
LOADFLAGS_NONE | |
LOADFLAGS_LOCALISE | |
Definition at line 14 of file AWaveBank.h.
◆ LOADRESULT
Enumerator |
---|
LOADRESULT_ERR | |
LOADRESULT_OK | |
Definition at line 20 of file AWaveBank.h.
◆ UNLOADRESULT
Enumerator |
---|
UNLOADRESULT_OK | |
Definition at line 26 of file AWaveBank.h.
◆ AWaveBank()
AWaveBank::AWaveBank |
( |
const Toshi::TPString8 & | a_strBank, |
|
|
const Toshi::TPString8 & | a_strPath, |
|
|
TBOOL | a_bSetFrequency ) |
Definition at line 17 of file AWaveBank.cpp.
18{
24
27
28 ASoundManager::ms_WaveBanks.Insert( a_strBank, this );
29}
Toshi::TPString8 m_strBank
AWaveBankFileHandle m_FileHandle
Toshi::TPString8 m_strPath
◆ ~AWaveBank()
AWaveBank::~AWaveBank |
( |
| ) |
|
|
virtual |
◆ CreateWaveSample()
AWaveSampleHandle AWaveBank::CreateWaveSample |
( |
TINT | a_iWaveIndex, |
|
|
TINT | a_iUnused ) |
Definition at line 65 of file AWaveBank.cpp.
66{
68
70 {
72 }
73
74 return m_pWaves[ a_iWaveIndex ].pSampleHandle;
75}
virtual AWaveSampleHandle GetWaveSample(TINT a_iWaveIndex, TINT a_iUnused) const
◆ GetWave()
AWave * AWaveBank::GetWave |
( |
TINT | a_iWaveIndex | ) |
|
◆ GetWaveFrequency()
TINT AWaveBank::GetWaveFrequency |
( |
TINT | a_iWaveIndex | ) |
|
◆ GetWaveId()
TINT AWaveBank::GetWaveId |
( |
TINT | a_iWaveIndex | ) |
|
◆ GetWaveSample()
AWaveSampleHandle AWaveBank::GetWaveSample |
( |
TINT | a_iWaveIndex, |
|
|
TINT | a_iUnused ) const |
|
virtual |
◆ IsReady()
virtual TBOOL AWaveBank::IsReady |
( |
| ) |
const |
|
pure virtual |
◆ Load()
◆ ParseWavesData()
void AWaveBank::ParseWavesData |
( |
const PBProperties * | a_pBankProperties, |
|
|
TUINT | a_uiForcedFlags ) |
Definition at line 91 of file AWaveBank.cpp.
92{
94
96
98
100 {
101 const PBProperties::PBProperty* pProperty = a_pBankProperties->
GetPropertyByIndex( i );
102
103
105
106 TINT iFrequency = 22050;
108 TUINT uiFlags = a_uiForcedFlags;
109
111
112
113 const PBPropertyValue* pFlagsProperty = pWaveProperties->
GetProperty(
"flags" );
114 if ( pFlagsProperty && uiFlags == 0 ) uiFlags = pFlagsProperty->
GetInteger();
115
116
117 const PBPropertyValue* pFreqProperty = pWaveProperties->
GetProperty(
"frequency" );
118 if ( pFreqProperty )
119 {
122 else
123 iFrequency = ASoundManager::GetSingleton()->m_iGlobalFrequency;
124 }
125
126
128
129 vecWaves.EmplaceBack( uiFlags, iFrequency, fLength,
TNULL, -1 );
131 }
132
133
135
136
139}
TFORCEINLINE T2Allocator * GetGlobalAllocator()
const class PBProperties * GetProperties() const
const TCHAR * GetString() const
TUINT32 GetPropertyCount() const
const PBPropertyValue * GetProperty(const TCHAR *a_szName) const
TBOOL GetOptionalPropertyValue(T &a_rOutValue, const TCHAR *a_szName) const
const PBProperty * GetPropertyByIndex(TSIZE a_iIndex) const
PBPropertyValue * GetValue()
PBPropertyName & GetName()
static Toshi::TMemory::MemBlock * GetMemBlock(POOL a_ePool)
◆ ResetWave()
void AWaveBank::ResetWave |
( |
TINT | a_iWaveIndex | ) |
|
|
virtual |
◆ SetWaveFlag1()
void AWaveBank::SetWaveFlag1 |
( |
TINT | a_iWaveIndex | ) |
|
◆ SetWaveFlag2()
void AWaveBank::SetWaveFlag2 |
( |
TINT | a_iWaveIndex | ) |
|
◆ Unload()
◆ m_bSetFrequency
TBOOL AWaveBank::m_bSetFrequency |
|
protected |
◆ m_FileHandle
AWaveBankFileHandle AWaveBank::m_FileHandle |
|
protected |
◆ m_iNumLoads
TINT AWaveBank::m_iNumLoads |
|
protected |
◆ m_iNumWaves
TINT AWaveBank::m_iNumWaves |
|
protected |
◆ m_pWaves
AWave* AWaveBank::m_pWaves |
|
protected |
◆ m_strBank
Toshi::TPString8 AWaveBank::m_strBank |
|
protected |
◆ m_strExtension
Toshi::TPString8 AWaveBank::m_strExtension |
|
protected |
◆ m_strPath
Toshi::TPString8 AWaveBank::m_strPath |
|
protected |
The documentation for this class was generated from the following files:
- D:/_dev/OpenBarnyard/Source/OpenBarnyard/Source/Sound/AWaveBank.h
- D:/_dev/OpenBarnyard/Source/OpenBarnyard/Source/Sound/AWaveBank.cpp