Looping in queueable sources
Posted: Wed Apr 04, 2018 1:45 pm
I'm opening this new thread to avoid derailing the thread where it originated.
If you mean the artifacts one, it's a consequence of lossy compression, not Löve's fault (nor did I imply it was).
If you mean the API one, can you provide an example for looping a sample in a QueueableSource? It requires SoundData, but SoundData can't be set to loop, and a QueueableSource itself can't be set to loop either. At best you can queue the same sound again and again until it needs to stop; I couldn't get rid of the one-loop latency at stop time when doing this. Example attached. Artifacts are audible at the start/loop transition and at the loop/end transition, because they don't stitch together well, but that's the fault of the sounds.
Which of both claims exactly? The artifacts one or the API one?
If you mean the artifacts one, it's a consequence of lossy compression, not Löve's fault (nor did I imply it was).
If you mean the API one, can you provide an example for looping a sample in a QueueableSource? It requires SoundData, but SoundData can't be set to loop, and a QueueableSource itself can't be set to loop either. At best you can queue the same sound again and again until it needs to stop; I couldn't get rid of the one-loop latency at stop time when doing this. Example attached. Artifacts are audible at the start/loop transition and at the loop/end transition, because they don't stitch together well, but that's the fault of the sounds.