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

How does the sound loading work? #48

Open
treymerkley opened this issue Mar 16, 2018 · 0 comments
Open

How does the sound loading work? #48

treymerkley opened this issue Mar 16, 2018 · 0 comments

Comments

@treymerkley
Copy link

treymerkley commented Mar 16, 2018

Looking at the code from the main.js file:
`
// Load sounds
for (var i = 1; i <= 24; i++) {
if (i > 9) {
fn = 'c0' + i;
} else {
fn = 'c00' + i;
}
celesta.push(new Howl({
src : ['https://d1fz9d31zqor6x.cloudfront.net/sounds/celesta/' + fn + '.ogg',
'https://d1fz9d31zqor6x.cloudfront.net/sounds/celesta/' + fn + '.mp3'],
volume : 0.7,
onload : sound_load(),
buffer: true,
}))
clav.push(new Howl({
src : ['https://d1fz9d31zqor6x.cloudfront.net/sounds/clav/' + fn + '.ogg',
'https://d1fz9d31zqor6x.cloudfront.net/sounds/clav/' + fn + '.mp3'],
volume : 0.4,
onload : sound_load(),
buffer: true,
}))
}

for (var i = 1; i <= 3; i++) {
swells.push(new Howl({
src : ['https://d1fz9d31zqor6x.cloudfront.net/sounds/swells/swell' + i + '.ogg',
'https://d1fz9d31zqor6x.cloudfront.net/sounds/swells/swell' + i + '.mp3'],
volume : 1,
onload : sound_load(),
buffer: true,
}));
}

Howler.volume(volume);
`
It looks like the sounds are remotely hosted, but the sounds folder is populated with ogg files. Are those fallbacks, and can I replace them to change the sound output?

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

1 participant