I have one specific question about looping sounds.
I wanted to create a gapeless looping of a looed sound, but always at the beginig of the loop there is a small hearable gap between the looping. I am using the open fl class Sounds and the SoundChannel to manipulate wit the sounds.
msoboc4 Are you sure you even have a sample accurate loop?
Have you 100% confirmed you can loop it in another program perfect with no clicks?
Edit; if it's any type of compressed file, you can have problems with loops.
TeotiGraphix yes the sound is looping but the gap is only when i run it via starling...
the code format is mp3. I know there are issues with mp3 formating, but is there maybe some kind of library for haxe/starling to use?
You may want to try Citrus's sound manager. link
If it's needed for some kind of loop/beats app then I recall people using something custom. But otherwise the Flash audio system allows you to specify a staring location in the sound. I've used this in the past to help clean up some music so it looped a little cleaner.
MP3 files have a small gap encoded to the beginning by default. WAV files are the best for looping.
If you really need MP3, you can pass in a start time to sound.play(), listen for Event.SOUND_COMPLETE, and then restart the audio at the appropriate time.
What target are you publishing for? Audio is handled differently under the hood for AIR/Flash, native or html5.
I've used this with great success! https://www.mptrim.com/
I've made this extension which supports seamless sound looping via silence trimming and/or WAV files format: https://github.com/Adolio/Syrinx-Sound-Manager
Forum thread: https://forum.starling-framework.org/d/21357-release-syrinx-sound-manager-v0-1
aureliendc Not really relevant here, the developer is using haxe for the html5 target, not AIR or as3.
@msoboc4 there seem to be some issues with the html5 target's sound quality, try a different target like neko perhaps and see if there are any changes. If not, you can try offsetting the start time of the sound in your code.
ChrisDS Oops, my bad! 😅
aureliendc No worries. Great library though 🙂