Infinite generated sound using openfl or lime

Is there any way to make infinite generated sound.
Create some AudioBuffer, fill it every 200 ms and pass it to Sound object?

Currently iā€™m generating 200-600 ms chunks and playing next chunk on every SOUND_COMPLETE event of current SoundChannel instance, but sometimes there are small gaps between playing sound chunks.

You could use the SAMPLE_DATA event http://help.adobe.com/en_US/as3/dev/WSE523B839-C626-4983-B9C0-07CF1A087ED7.html

1 Like

Thanks a lot. It works. Need to tuneup a bit, but it works.