OpenBarnyard
 
Loading...
Searching...
No Matches
AMusicManager.cpp
Go to the documentation of this file.
1#include "pch.h"
2#include "AMusicManager.h"
3#include "ASoundManager.h"
4
5//-----------------------------------------------------------------------------
6// Enables memory debugging.
7// Note: Should be the last include!
8//-----------------------------------------------------------------------------
10
12
14
16{
17 m_eBackgroundMusicCue = -1;
18}
19
21{
22 if ( m_eBackgroundMusicCue == -1 )
23 m_eBackgroundMusicCue = ASoundManager::GetSingleton()->PlayCue( a_eSoundId );
24}
25
27{
28 TASSERT( m_eBackgroundMusicCue != -1 );
29
30 ASoundManager::GetSingleton()->StopCue( m_eBackgroundMusicCue );
31 m_eBackgroundMusicCue = -1;
32}
#define TASSERT(X,...)
Definition Defines.h:138
#define TOSHI_NAMESPACE_USING
Definition Defines.h:46
#define TDEFINE_CLASS(...)
Definition TObject.h:120
TINT32 ASoundId
Definition ASoundLegacy.h:5
void StopBackgroundMusic()
void PlayBackgroundMusic(ASoundId a_eSoundId)