From shakesoda's fork: port PLAY_CRITICAL.
This commit is contained in:
+12
-31
@@ -829,41 +829,22 @@ void ScreenManager::ZeroNextUpdate()
|
|||||||
DISPLAY->ResetStats();
|
DISPLAY->ResetStats();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenManager::PlayInvalidSound()
|
/** @brief Offer a quick way to play any critical sound. */
|
||||||
{
|
#define PLAY_CRITICAL(snd) \
|
||||||
RageSoundParams p;
|
{ \
|
||||||
p.m_bIsCriticalSound = true;
|
RageSoundParams p; \
|
||||||
m_soundInvalid.Play( &p );
|
p.m_bIsCriticalSound = true; \
|
||||||
|
snd.Play(&p); \
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Always play these sounds, even if we're in a silent attract loop. */
|
/* Always play these sounds, even if we're in a silent attract loop. */
|
||||||
void ScreenManager::PlayStartSound()
|
void ScreenManager::PlayInvalidSound() { PLAY_CRITICAL(m_soundInvalid); }
|
||||||
{
|
void ScreenManager::PlayStartSound() { PLAY_CRITICAL(m_soundStart); }
|
||||||
RageSoundParams p;
|
void ScreenManager::PlayCoinSound() { PLAY_CRITICAL(m_soundCoin); }
|
||||||
p.m_bIsCriticalSound = true;
|
void ScreenManager::PlayCancelSound() { PLAY_CRITICAL(m_soundCancel); }
|
||||||
m_soundStart.Play( &p );
|
void ScreenManager::PlayScreenshotSound() { PLAY_CRITICAL(m_soundScreenshot); }
|
||||||
}
|
|
||||||
|
|
||||||
void ScreenManager::PlayCoinSound()
|
#undef PLAY_CRITICAL
|
||||||
{
|
|
||||||
RageSoundParams p;
|
|
||||||
p.m_bIsCriticalSound = true;
|
|
||||||
m_soundCoin.Play( &p );
|
|
||||||
}
|
|
||||||
|
|
||||||
void ScreenManager::PlayCancelSound()
|
|
||||||
{
|
|
||||||
RageSoundParams p;
|
|
||||||
p.m_bIsCriticalSound = true;
|
|
||||||
m_soundCancel.Play( &p );
|
|
||||||
}
|
|
||||||
|
|
||||||
void ScreenManager::PlayScreenshotSound()
|
|
||||||
{
|
|
||||||
RageSoundParams p;
|
|
||||||
p.m_bIsCriticalSound = true;
|
|
||||||
m_soundScreenshot.Play( &p );
|
|
||||||
}
|
|
||||||
|
|
||||||
void ScreenManager::PlaySharedBackgroundOffCommand()
|
void ScreenManager::PlaySharedBackgroundOffCommand()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user