shawnlawson / The_Force

webGL live coding performance IDE
https://shawnlawson.github.io/The_Force/
MIT License
276 stars 53 forks source link

Auto-Repeat audio #23

Open TimPietrusky opened 4 years ago

TimPietrusky commented 4 years ago

During the development of an audio-reactive shader, it would be cool if there would be an option to auto-repeat the audio that is loaded from SoundCloud, so that I can close the Audio-Input window and concentrate at the iterations of the shader.

shawnlawson commented 4 years ago

That's a pretty good idea. Will look into that.

shawnlawson commented 4 years ago

Slight complication. Looking at the widget API and guide, it seems like SoundCloud doesn't automatically provide a loop or repeat functionality. Looks like needing to bind a handler for SC.Widget.Events.FINISH that will do a rewind.