Skip to content

Commit

Permalink
Upped the amount read in from a wav file (to capture the headers) to …
Browse files Browse the repository at this point in the history
…512k
  • Loading branch information
Mattk70 committed Apr 8, 2024
1 parent acd273a commit db4d27a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ const getWavePredictBuffers = async ({
let readStream;

// extract the header. With bext and iXML metadata, this can be up to 128k, hence 131072
const headerStream = fs.createReadStream(file, {start: 0, end: 131072, highWaterMark: 131072});
const headerStream = fs.createReadStream(file, {start: 0, end: 524288, highWaterMark: 524288});
headerStream.on('readable', () => {
let chunk = headerStream.read();
let wav = new wavefileReader.WaveFileReader();
Expand Down

0 comments on commit db4d27a

Please sign in to comment.