Skip to content

Commit

Permalink
Build latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
rphsoftware committed Dec 18, 2020
1 parent f3f3f6a commit 5ebe993
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A modern web player for Binary Revolution Stream (BRSTM) files

## Compiling

This program is built using webpack. To set up a dev environment, simply run `yarn` and to compile run `npm run build`. The compiled js is then dropped into `dist/` as `bundle.min.js`
This program is built using rollup. To set up a dev environment, simply run `yarn` and to compile run `npm run build`. The compiled js is then dropped into `dist/` as `bundle.min.js`

## Operation

Expand Down
6 changes: 3 additions & 3 deletions dist/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -1819,7 +1819,7 @@ style="stroke:#fff;stroke-width:5;stroke-linejoin:round;fill:#fff;"
bufferSize
);
let loadBufferSize = bufferSize;

// If we resample, we need to also fetch some extra samples to prevent audio glitches
if (!capabilities.sampleRate) {
loadBufferSize += 20;
Expand Down Expand Up @@ -1874,7 +1874,7 @@ style="stroke:#fff;stroke-width:5;stroke-linejoin:round;fill:#fff;"
playbackCurrentSample,
(brstm$1.metadata.totalSamples - playbackCurrentSample)
);

let endSamplesLength = samples[0].length;

console.log((brstm$1.metadata.totalSamples - playbackCurrentSample), (loadBufferSize - endSamplesLength));
Expand All @@ -1894,7 +1894,7 @@ style="stroke:#fff;stroke-width:5;stroke-linejoin:round;fill:#fff;"
samples[i] = buf;
}

// Set to loopStartPoint + length of second buffer
// Set to loopStartPoint + length of second buffer (recalculated to not set extra resampling samples)
playbackCurrentSample = brstm$1.metadata.loopStartSample + bufferSize - endSamplesLength;
} else {
// No looping
Expand Down

0 comments on commit 5ebe993

Please sign in to comment.