this post was submitted on 03 Sep 2023
19 points (100.0% liked)

Rust Programming

7734 readers
2 users here now

founded 5 years ago
MODERATORS
 

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 comment's thread
view the rest of the comments
[–] uncle_agrey@lemmy.ml 3 points 1 year ago

Man I implemented something like the Sink option and it is playing the audio clips at inputted intervals just as I wanted. The only thing missing for me now is just the intervals, which means i just need to tinker with my exponential time functions. Thank you so much for your help.