Currently the play function and stop function in Sound look like this:
play(&self)stop(&mut self)
This makes it extremely hard to simply play and stop audio. Please if anyone know a way to work around it I have been bashing my skull against a wall for DAYS trying to simply play audio because I switched to the newest version of Raylib. My code(which doesn't work) for it rn looks like this:
if (game.wake_up_sequence.cutscene_state.clone() as i32) == 1 && !alarm_sound.unwrap().is_playing() {
alarm_sound.as_mut().unwrap().play();
} else if (game.wake_up_sequence.cutscene_state.clone() as i32) == 3 {
alarm_sound.unwrap().stop();
}
Currently the
play
function andstop
function inSound
look like this:play(&self)
stop(&mut self)
This makes it extremely hard to simply play and stop audio. Please if anyone know a way to work around it I have been bashing my skull against a wall for DAYS trying to simply play audio because I switched to the newest version of Raylib. My code(which doesn't work) for it rn looks like this: