Besides adding the functionality to loop the track this PR includes a major refactoring.
The wavesurfer instance and audio context are no longer saved as reactive state but now only exists on the root element. Having the wavesurfer instance be reactive has already led to some bugs and would have most likely only created more problems down the path. This PR also includes a fix for #18
Besides adding the functionality to loop the track this PR includes a major refactoring. The wavesurfer instance and audio context are no longer saved as reactive state but now only exists on the root element. Having the wavesurfer instance be reactive has already led to some bugs and would have most likely only created more problems down the path. This PR also includes a fix for #18
9