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

1 Like

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