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

Question regarding adding silence #32

Open
matthewchung74 opened this issue Apr 7, 2015 · 1 comment
Open

Question regarding adding silence #32

matthewchung74 opened this issue Apr 7, 2015 · 1 comment

Comments

@matthewchung74
Copy link

on this line, https://github.com/tonistiigi/audiosprite/blob/master/audiosprite.js#L224, why is there a Math.ceil(duration)? the ceil is added a silent gap in between my files, which isn't what i want. anyways, any feedback is appreciated.

@tonistiigi
Copy link
Owner

This is to get all the sprites starting at a full second.

So if your first file is 2.3s long then next one will start at 4.0s, after 1.7s of silence. (ceil(2.3)-2.3+1)

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