mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2024-12-22 05:53:43 -05:00
skip adpcm sounds
This commit is contained in:
parent
a62b028834
commit
e45f6ed7d7
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue