debeat icon indicating copy to clipboard operation
debeat copied to clipboard

Audio pops/crackles when playing audio at init of application on Windows

Open subsoap opened this issue 8 years ago • 2 comments

Doesn't happen with vanilla Defold

Any ideas other than adding a tiny delay?

subsoap avatar Aug 22 '17 03:08 subsoap

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.

adamwestman avatar Aug 22 '17 05:08 adamwestman

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
screen shot 2017-08-22 at 23 28 09

I perform the play from on_message to ensure no running conditions with mixer script init.

adamwestman avatar Aug 22 '17 21:08 adamwestman