mirror of
https://github.com/wayvr-org/wayvr.git
synced 2026-12-03 15:22:24 -08:00
* try adding config to load different sound looks like include_bytes!() doesn't take a variable parameter, so will need a different solution lol. * no errors in loading, but toast.rs now has a lifetime issue * hey, config toast sound works now! the sound is loaded in AppState now, since Toast are created in several different places at different times, and i don't want to load the sound every time a toast is made. also put back the original sound since i accidentally commited my custom one. * clean up * change custom toast sound leak to happen on load rather than every play * move toast sound loading into a function so it can be reused in the future, for example if we want to load arbitrary keypress sounds or other [u8] data. * remove label from try_load_bytes, return early when failing