Add player name entry, dedicated menu music, and original Bullfrog menu fonts
This commit is contained in:
1 parent
c017d27b2a
commit
6c24f715a0
13 files changed
+835
-199
No files matched your search
@@ -253,6 +253,24 @@ int main() {
|
||||
trk_pcm, (b == 0) ? "All-tracks OPL3" : "All-tracks SoundFont");
|
||||
CHECK(st.finite_ok && st.peak > 0.01f && st.rms >= 0.008f);
|
||||
}
|
||||
|
||||
// Dedicated Menu track: immediate downbeat energy + CC 116..117 loop wrap past 27s
|
||||
eng.play_music(audio::MusicTrackId::Menu, true);
|
||||
std::vector<float> menu_2s(48000 * 2 * 2, 0.0f);
|
||||
eng.mix_offline(menu_2s.data(), 48000 * 2);
|
||||
BufferStats menu_start = measure_buffer(
|
||||
menu_2s, (b == 0) ? "Menu immediate 2s OPL3" : "Menu immediate 2s SoundFont");
|
||||
CHECK(menu_start.finite_ok && menu_start.peak <= 1.0f &&
|
||||
menu_start.rms >= ((b == 0) ? 0.03f : 0.025f));
|
||||
|
||||
std::vector<float> menu_1s(48000 * 2, 0.0f);
|
||||
for (int sec = 2; sec < 29; ++sec) {
|
||||
eng.mix_offline(menu_1s.data(), 48000);
|
||||
}
|
||||
BufferStats menu_loop = measure_buffer(
|
||||
menu_1s, (b == 0) ? "Menu looped 29s OPL3" : "Menu looped 29s SoundFont");
|
||||
CHECK(menu_loop.finite_ok && menu_loop.peak <= 1.0f &&
|
||||
menu_loop.rms >= ((b == 0) ? 0.03f : 0.025f));
|
||||
}
|
||||
eng.stop_music();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user