Don't use legacy function names in sound code

This commit is contained in:
Lwmte 2021-10-02 18:54:53 +03:00
parent d7960627e3
commit c871884301
10 changed files with 15 additions and 33 deletions

View file

@ -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);
}
/*