mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2025-07-27 22:29:39 -04:00
comments
This commit is contained in:
parent
b32ee9267b
commit
a150f018b5
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ ADPCMSoundLoader.prototype.load = function (url) {
|
||||||
|
|
||||||
var samples = this.imaDecompress(this.extractChunk('data', stream), this.adpcmBlockSize);
|
var samples = this.imaDecompress(this.extractChunk('data', stream), this.adpcmBlockSize);
|
||||||
|
|
||||||
// this line is the only place Tone is used here, should be possible to remove
|
// todo: this line is the only place Tone is used here, should be possible to remove
|
||||||
var buffer = Tone.context.createBuffer(1, samples.length, this.samplesPerSecond);
|
var buffer = Tone.context.createBuffer(1, samples.length, this.samplesPerSecond);
|
||||||
|
|
||||||
// todo: optimize this? e.g. replace the divide by storing 1/32768 and multiply?
|
// todo: optimize this? e.g. replace the divide by storing 1/32768 and multiply?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue