mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-30 00:37:58 +03:00
Don't use legacy function names in sound code
This commit is contained in:
parent
d7960627e3
commit
c871884301
10 changed files with 15 additions and 33 deletions
|
@ -30,7 +30,7 @@ Functions and callbacks for level-specific logic scripts.
|
|||
|
||||
static void PlayAudioTrack(std::string const & trackName, sol::optional<bool> looped)
|
||||
{
|
||||
S_CDPlay(trackName, looped.value_or(SOUND_TRACK_ONESHOT));
|
||||
PlaySoundTrack(trackName, looped.value_or(SOUND_TRACK_ONESHOT));
|
||||
}
|
||||
|
||||
static void PlaySoundEffect(int id, GameScriptPosition p, int flags)
|
||||
|
@ -54,7 +54,7 @@ static void PlaySoundEffect(int id, int flags)
|
|||
|
||||
static void SetAmbientTrack(std::string const & trackName)
|
||||
{
|
||||
S_CDPlay(trackName, SOUND_TRACK_BGM);
|
||||
PlaySoundTrack(trackName, SOUND_TRACK_BGM);
|
||||
}
|
||||
|
||||
static int FindRoomNumber(GameScriptPosition pos)
|
||||
|
@ -517,7 +517,7 @@ void AddOneSecret()
|
|||
if (Savegame.Level.Secrets >= 255)
|
||||
return;
|
||||
Savegame.Level.Secrets++;
|
||||
S_CDPlay(TRACK_FOUND_SECRET, SOUND_TRACK_ONESHOT);
|
||||
PlaySoundTrack(TRACK_FOUND_SECRET, SOUND_TRACK_ONESHOT);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue