Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
subsoap opened this issue Aug 22, 2017 · 2 comments
Open

Comments

@subsoap
Copy link

subsoap commented Aug 22, 2017

Doesn't happen with vanilla Defold

Any ideas other than adding a tiny delay?

@adamwestman
Copy link
Owner

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants