[SOLVED] Assets.getSound breaks SAMPLE_DATA generated sounds on ios

Here is the code which describes situation. I’m using -Dlegacy.

track = new Sound(); // if uncommented here it breaks playing generated sound //var tmp = Assets.getSound("sounds/click.ogg"); track.addEventListener(SampleDataEvent.SAMPLE_DATA, handleSampleData); trackChannel = track.play(); // if uncommented here works well //var tmp = Assets.getSound("sounds/click.ogg");

Is there any way to fix that?

Checked on next and it’s still there

What if you set cache to false?

Seems that worked out, thanks.