Skip to content

Please help with FileLoop #1844

Answered by pschatzmann
BODYPRINT asked this question in Q&A
Discussion options

You must be logged in to vote

I guess your issue is in the loop logic:

  • when the file is < 7886, there will be never a seek (): I would check the result of copy(): if it is 0 you are at the end of the file
  • maybe you should debounce the read or just handle state changes ? - I don't quite understand your setup and intention here
  • If you want to loop over the complete file you can use the FileLoop class
  • Your file positions are rather small so you just play a couple of milliseconds of audio

Just keep the log level info in the loop and add some log statement in your loop, so that you see when your seek is called.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pschatzmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants