checkbox sounds, app launch sounds

This commit is contained in:
Aleksander
2026-01-06 17:09:39 +01:00
parent 46ab3ce960
commit 51dbb6f14d
13 changed files with 85 additions and 24 deletions

View File

@@ -0,0 +1 @@
../../../wlx-overlay-s/src/assets/sound/wgui_checkbox_check.mp3

View File

@@ -0,0 +1 @@
../../../wlx-overlay-s/src/assets/sound/wgui_checkbox_uncheck.mp3

View File

@@ -70,14 +70,16 @@ impl TestbedDashboard {
}
impl Testbed for TestbedDashboard {
fn update(&mut self, mut params: TestbedUpdateParams) -> anyhow::Result<()> {
fn update(&mut self, params: TestbedUpdateParams) -> anyhow::Result<()> {
let res = self.frontend.update(FrontendUpdateParams {
data: &mut (), /* nothing */
width: params.width,
height: params.height,
timestep_alpha: params.timestep_alpha,
})?;
params.process_layout_result(res);
self
.frontend
.process_update(res, params.audio_system, params.audio_sample_player)?;
Ok(())
}