Match authentic per-map music track mapping from HIOCTANE.EXE

This commit is contained in:
Luxferre committed 2026-12-01 22:00:41 +02:00
1 parent 8e6bb5540b
commit 0848f4ffd2
3 files changed
+43 -2

No files matched your search

+9
View File
@@ -27,6 +27,15 @@ enum class MusicTrackId {
Menu = 5, // Dedicated Menu loop (downbeat of TINTRO2 / optional tmenu.wav)
};
// Authentic Bullfrog HIOCTANE.EXE per-map music mapping (1-based track_number 1..9):
// Maps 1-2 -> TGAME1, Maps 3-4 -> TGAME2, Maps 5-6 -> TGAME4, Maps 7-9 -> TGAME3.
inline constexpr MusicTrackId music_track_for_level(int track_number) {
if (track_number <= 2) return MusicTrackId::Game1;
if (track_number <= 4) return MusicTrackId::Game2;
if (track_number <= 6) return MusicTrackId::Game4;
return MusicTrackId::Game3;
}
class AudioEngine {
public:
static constexpr int kSampleRate = 48000;