Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
MysteryPancake authored Mar 17, 2024
1 parent 6b63f3b commit 81291e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion html/rawaudio.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
function readSamples(elem) {
let samples = [];
const strings = elem.value.split(sepElem.value);

for (let i = 0; i < strings.length; ++i) {
const str = strings[i].trim();
if (!str) continue;
Expand All @@ -178,6 +178,7 @@
function updateData() {
dataLeft = readSamples(leftElem);
dataRight = readSamples(rightElem);
if (!dataLeft || !dataRight) return;

const hasRight = dataRight.length > 0;
if (hasRight && dataLeft.length !== dataRight.length) {
Expand Down

0 comments on commit 81291e5

Please sign in to comment.