spatialaudio / jackclient-python

🂻 JACK Audio Connection Kit (JACK) Client for Python :snake:
https://jackclient-python.readthedocs.io/
MIT License
135 stars 26 forks source link

play audio in loop #50

Closed redPanther closed 4 years ago

redPanther commented 6 years ago

hi, i want to play a wav file in a loop. I tried to modify playfile.py but without luck. My idea was to reset sndfile sf.seek(0) after all blocks put to queue.

any idea what's wrong?

mgeier commented 6 years ago

Using sf.seek(0) sounds like it could work. But if your audio file isn't huge, you could also load the whole file into memory (then you wouldn't even need a queue).

Either way, to know what's wrong, you'll have to show what you did!