Hello, I really need help figuring out Rodio audio playback for a rust project. I need to play a short audio clip of a casino wheel turning a certain amount of times in a loop. When I run the main function, the program plays the audio clip once and then stops completely. If anybody who has used Rodio can give me help it would be greatly appreciated. Also, I have tried using a longer duration in the play_sound function but it doesn’t change anything. Thank you

You are viewing a single thread.
View all comments
0 points

I don’t know Rodio, but in line 75 of your code, you’re hiding errors. You need to unwrap/expect the result or do something with it to see what errors are being thrown.

permalink
report
reply

Rust Programming

!rust@lemmy.ml

Create post

Community stats

  • 171

    Monthly active users

  • 94

    Posts

  • 161

    Comments

Community moderators