debeat
debeat copied to clipboard
Audio pops/crackles when playing audio at init of application on Windows
Doesn't happen with vanilla Defold
Any ideas other than adding a tiny delay?
Does this apply for all type of audio play or when using the fade in from mixed tracks? There was a bug with initial Gain there before, but that was platform agnostic and regardless of application lifecycle.
I tried to recreate this on Mac and Windows 64bit using sounds from the project and the mixer, but the below did not yield any results. So maybe the case is different?
local mixer = require "debeat.mixer"
function init(self)
msg.post("#", "post_init")
end
function on_message(self, message_id, message, sender)
mixer.play(msg.url("#sound"), {delay=0, attack=0})
end
I perform the play from on_message to ensure no running conditions with mixer script init.