Add pitstop audio cue, original explosions/smoke, authentic HUD, and Modern lighting/shadows

This commit is contained in:
Luxferre committed 2026-12-01 09:19:20 +02:00
1 parent 3a377b0534
commit 197bfbc973
21 files changed
+1927 -246

No files matched your search

+24
View File
@@ -275,6 +275,30 @@ int main() {
eng.stop_music();
}
// 7. Continuous pitstop REFUEL.WAV loop (charging, high-pitched standby, clean fade-out)
{
eng.stop_music();
eng.set_engine_state(false, 0.0f, false, 0.0f);
std::vector<float> pit_buf(12000 * 2, 0.0f);
eng.set_pitstop_state(true, true, 0.25f);
eng.mix_offline(pit_buf.data(), 12000);
BufferStats chg_st = measure_buffer(pit_buf, "Pitstop charging");
CHECK(chg_st.finite_ok && chg_st.rms > 0.01f);
eng.set_pitstop_state(true, false, 1.0f);
eng.mix_offline(pit_buf.data(), 12000);
BufferStats stdby_st = measure_buffer(pit_buf, "Pitstop standby");
CHECK(stdby_st.finite_ok && stdby_st.rms > 0.004f && stdby_st.rms < chg_st.rms);
eng.set_pitstop_state(false, false, 1.0f);
std::vector<float> fade_buf(4800 * 2, 0.0f);
eng.mix_offline(fade_buf.data(), 4800);
eng.mix_offline(pit_buf.data(), 12000);
BufferStats off_st = measure_buffer(pit_buf, "Pitstop off");
CHECK(off_st.finite_ok && off_st.rms < 0.001f);
}
std::cout << "[PASS] AudioEngine, OPL3 FM, SoundFont SBK, Normalization & Limiter validated\n";
return 0;
}