Add player name entry, dedicated menu music, and original Bullfrog menu fonts

This commit is contained in:
Luxferre committed 2026-11-30 23:41:37 +02:00
1 parent c017d27b2a
commit 6c24f715a0
13 files changed
+835 -199

No files matched your search

+3 -1
View File
@@ -24,6 +24,7 @@ enum class MusicTrackId {
Game2 = 2, // TGAME2
Game3 = 3, // TGAME3
Game4 = 4, // TGAME4
Menu = 5, // Dedicated Menu loop (downbeat of TINTRO2 / optional tmenu.wav)
};
class AudioEngine {
@@ -101,6 +102,7 @@ private:
bool push_command(const AudioCommand& cmd);
void drain_commands();
void start_active_track();
void render_internal(float* stereo_out, int frames);
int find_sfx_index(const std::string& name, bool intro_bank) const;
static void sdl_audio_callback(void* userdata, uint8_t* stream, int len);
@@ -118,7 +120,7 @@ private:
// Pre-parsed sequences for 2 banks (Adlib .XMI and AWE32 .WTB) x 5 songs
std::array<assets::XmiSequence, 5> opl_seqs_{};
std::array<assets::XmiSequence, 5> wt_seqs_{};
std::array<assets::SoundSample, 5> custom_wav_tracks_{};
std::array<assets::SoundSample, 6> custom_wav_tracks_{};
Opl3Synth opl_synth_;
SfSynth sf_synth_;