Update SDLLib. Add sound support and effect.

This commit is contained in:
J-D-K
2025-10-09 16:43:29 -04:00
parent 2f90b5d2d6
commit e342a11016
7 changed files with 40 additions and 4 deletions

View File

@@ -35,6 +35,7 @@ MainMenuState::MainMenuState()
MainMenuState::initialize_view_states();
MainMenuState::initialize_data_struct();
MainMenuState::check_for_update();
MainMenuState::play_boot_sound();
}
void MainMenuState::update()
@@ -136,6 +137,15 @@ void MainMenuState::initialize_data_struct()
void MainMenuState::check_for_update() { sys::threadpool::push_job(tasks::update::check_for_update, m_dataStruct); }
void MainMenuState::play_boot_sound()
{
// static constexpr std::string_view BOOT_NAME = "BootSound";
// static constexpr const char *BOOT_PATH = "romfs:/Sound/Boot.wav";
// sdl::SharedSound bootSound = sdl::SoundManager::load(BOOT_NAME, BOOT_PATH);
// bootSound->play();
}
void MainMenuState::push_target_state()
{
const int popTicks = ui::PopMessageManager::DEFAULT_TICKS;