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?