28 ASoundManager::ms_WaveBanks.Insert( a_strBank,
this );
34 return m_pWaves[ a_iWaveIndex ].pSampleHandle;
43 ASoundManager::ms_WaveBanks.Remove(
m_strBank );
56 return m_pWaves[ a_iWaveIndex ].iIndex;
62 return m_pWaves[ a_iWaveIndex ].iFrequency;
74 return m_pWaves[ a_iWaveIndex ].pSampleHandle;
80 m_pWaves[ a_iWaveIndex ].iFlags &= ~2;
81 m_pWaves[ a_iWaveIndex ].iFlags |= 1;
87 m_pWaves[ a_iWaveIndex ].iFlags &= ~1;
88 m_pWaves[ a_iWaveIndex ].iFlags |= 2;
106 TINT iFrequency = 22050;
108 TUINT uiFlags = a_uiForcedFlags;
114 if ( pFlagsProperty && uiFlags == 0 ) uiFlags = pFlagsProperty->
GetInteger();
123 iFrequency = ASoundManager::GetSingleton()->m_iGlobalFrequency;
#define TOSHI_NAMESPACE_USING
TFORCEINLINE T2Allocator * GetGlobalAllocator()
Dynamic vector container for the Toshi engine.
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()
T * EmplaceBack(Args &&... args)
static Toshi::TMemory::MemBlock * GetMemBlock(POOL a_ePool)
Toshi::TPString8 m_strBank
TINT GetWaveFrequency(TINT a_iWaveIndex)
virtual void ResetWave(TINT a_iWaveIndex)
AWaveSampleHandle CreateWaveSample(TINT a_iWaveIndex, TINT a_iUnused)
virtual AWaveSampleHandle GetWaveSample(TINT a_iWaveIndex, TINT a_iUnused) const
AWaveBankFileHandle m_FileHandle
void SetWaveFlag1(TINT a_iWaveIndex)
Toshi::TPString8 m_strPath
TINT GetWaveId(TINT a_iWaveIndex)
void ParseWavesData(const PBProperties *a_pBankProperties, TUINT a_uiForcedFlags)
AWave * GetWave(TINT a_iWaveIndex)
AWaveBank(const Toshi::TPString8 &a_strBank, const Toshi::TPString8 &a_strPath, TBOOL a_bSetFrequency)
void SetWaveFlag2(TINT a_iWaveIndex)