but i still hear the music start before the volume is zeroed ! , changing the time delay in the actuate transform to “0” also causes the same crash.
My intention is to start the music at zero volume, so i may fade it in over a few seconds. This works fine on the flash target, and also worked fine on Neko before i upgraded today (openfl 2.28, lime 2.13).
Is there a better way of starting music at zero volume?, or is this just a bug that i should log on github ?
The above code works fine on Windows and Flash (I do not have mac and linux to test on)
I have tried adding the SoundTransform to the sound.play() line as you suggest. Whilst Neko doesn’t crash at that point, it also doesn’t apply the sound transform to the sound either!
This is the same in the PlayingSound example, on Neko the music starts at full volume. (although the included .ogg file does itself contain a fadein, which make it sound like it’s working properly when it isn’t !)
great, yup - just updated to lime 2.3.3, openfl 3.0.3 (from -0.0.1 of each) neko Event.SOUND_COMPLETE now fires on sound completion.
sound.play(sound,0,zerovolume) continues to ignore a soundtransform in Neko
musicchannel.soundTransform = zerovolume; still causes the application to crash (when used in the code in the OP)
The new update has introduced a strange further failure in Neko sound. after approx 45 sounds are played, my trace is flooded with the text “Could not initialize FreeType” and all sound effects cease to play!