Skip to content

Using url to analog example leaves speaker "bugged" repeating last fragment #693

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

You must be logged in to vote

I am not sure where this would come from. In any case I could never reproduce this myself, so it could be related to your hardware.
There are plenty of options that you can try:

  1. Use a wav file instead of a mp3
  2. instead of copy in the loop just do a copyAll() in the setup
  3. when the copy is done (if copier.copy()==0) you could
    3.1) close the output: analog.end()
    3.2) just continue to write silence: output.writeSilence(1024)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@FGAC1226
Comment options

Answer selected by pschatzmann
Comment options

You must be logged in to vote
0 replies
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