• 3 Posts
  • 3 Comments
Joined 1 year ago
cake
Cake day: August 7th, 2023

help-circle



  • 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.


  • uncle_agreyOPtoRust ProgrammingRust Rodio audio playback
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I dont want to pause/play the source. I simply want to replay it over and over again but with a delay in between. The audio is a click of a game wheel spinning, its duration is somewhere in the low milliseconds. I have an exponential function which tells the program how much time to sleep until the next click on the wheel. I just want to play the sound each time the wheel clicks. Do you think appending the sound to a sink and removing it once Sink.sleep_until_end() finishes would produce that outcome.