Frequently Asked Questions and Frequently Encountered Problems - MagmarFire/Enso-Music-Player GitHub Wiki
Why am I getting an error saying, "An exception occurred when creating and caching the music clip: length," or some variation thereof?
This is caused by the specified loop points being out of the track's physical range. For instance, if the track is 1000 samples long and has a LOOPSTART setting of 100 and a LOOPLENGTH setting of 950, that's a total song length of 1050.
To fix this, you should update to the latest version; as of v1.2, Ensō will not allow loop clips to exceed the bounds of the original track. However, if you cannot update, check to make sure that the sum of the LOOPSTART and LOOPLENGTH doesn't exceed the physical size of the track.
My loop points are all weird. They worked just fine in Audacity/BrawlBox/whatever! Why is it looping back too soon/late?
This may be caused by Unity changing the track's frequency while you weren't looking. In my experience, using a weird frequency like 28637 Hz may cause Unity to go, "lol, nope!" and change it to something more normal like 32 kHz. The track ends up sounding more-or-less the same, but it does invalidate your old loop points.
To make up for this, Ensō, as of v1.2, will check the old frequency, compare it to the new one, and update the loop points you set under the hood, so normally, this shouldn't be a problem. But if you are encountering this, it may be up to you to take matters into your own hands.
You can turn off automatic compensation by unchecking the Compensate for Frequency box. This way, you can use your own values, if you choose to find ones yourself that work.
If this still doesn't work, then I suggest opening up the sound clip in Audacity or something and exporting it at a standard frequency (32 kHz is a nice, round number that Unity seems to like). From there, you can adjust your loop points as before.