skip adpcm sounds

This commit is contained in:
Eric Rosenbaum 2016-10-19 16:40:00 -04:00
parent a62b028834
commit e45f6ed7d7

View file

@ -60,9 +60,14 @@ function AudioEngine (sounds) {
AudioEngine.prototype.loadSounds = function (sounds) {
for (var i=0; i<sounds.length; i++) {
var url = sounds[i].fileUrl;
// skip adpcm form sounds since we can't load them yet
if (sounds[i].format == 'adpcm') {
continue;
}
var sampler = new Tone.Sampler(url);
sampler.connect(this.effectsNode);
this.soundSamplers.push(sampler);
// this.soundSamplers.push(sampler);
this.soundSamplers[i] = sampler;
}
};