Skip to content

Commit ba50f39

Browse files
committed
fixed a bug in wave-encoder; added module info to processor runtime error
1 parent 5b3f157 commit ba50f39

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/modules/wave-encoder-worker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,13 +327,13 @@ function buildBuffer(start, end){
327327
}
328328
}
329329
console.error("buffer mismatch", n, dataLength); //TODO: why does this always match?
330+
//TODO: we clear lookback buffer here ... so we should clear everything
331+
lookbackBufferNeedsReset = false;
330332

331333
return {
332334
buffer: collectBuffer,
333335
isFloat32: isFloat32
334336
}
335-
//TODO: we clear lookback buffer here ... so we should clear everything
336-
lookbackBufferNeedsReset = false;
337337
}
338338

339339
function encodeWAV(samples, sampleRate, numChannels, convertFromFloat32){

src/processor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ if (!(typeof SepiaFW == "object")){
355355
onProcessorError({
356356
name: "AudioModuleProcessorException",
357357
message: ("Error in module: " + err.target.moduleName + " - " + (errorMessage && errorMessage.message? errorMessage.message : "Check console for details.")),
358+
module: err.target.moduleName,
358359
info: errorMessage
359360
});
360361
if (isInitPending && !isInitialized){

0 commit comments

Comments
 (0)