You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Late response (in the future you may get a faster one on raylib-rs/raylib-rs) but if you're still willing to work this out for some reason, what did alarm_sound look like?
Thank you for the response. To be honest I didn't expect one. The project I'm working on has changed a lot since I made this issue. But in this context I think the definition would look like this:
let alarm_sound = a.new_sound("src/sounds/alarm.wav").unwrap();
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:
The text was updated successfully, but these errors were encountered: