Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
renojim
Community Streaming Expert

roAudioResource isPlaying() very inaccurate

I've been trying to use isPlaying() to determine when a triggered sound has finished playing and it's pretty much useless for that purpose. Not only that, but it's inconsistent on a 1st gen vs. 2nd gen box. I have a 75ms "click" sound that takes 39ms to play on a Roku 1, but a whopping 500ms to play on a Roku 2! I can take the 39ms, but the 500ms?! That coupled with the broken/inaccurate Sleep() function on the Roku 2s is making my latest development effort a miserable affair. 😞 :x

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos