mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2025-01-20 14:30:13 -05:00
Fix while
condition, disable eslint complaint
This commit is contained in:
parent
fa879cee9d
commit
ea3c4a47f2
1 changed files with 3 additions and 2 deletions
|
@ -129,8 +129,9 @@ class ADPCMSoundDecoder {
|
||||||
if (!compressedData) return out;
|
if (!compressedData) return out;
|
||||||
|
|
||||||
compressedData.position = 0;
|
compressedData.position = 0;
|
||||||
const a = 0;
|
|
||||||
while (a === 0) {
|
// @todo Update this loop ported from Scratch 2.0 to use a condition or a for loop.
|
||||||
|
while (true) { // eslint-disable-line no-constant-condition
|
||||||
if (((compressedData.position % blockSize) === 0) && (lastByte < 0)) { // read block header
|
if (((compressedData.position % blockSize) === 0) && (lastByte < 0)) { // read block header
|
||||||
if (compressedData.getBytesAvailable() === 0) break;
|
if (compressedData.getBytesAvailable() === 0) break;
|
||||||
sample = compressedData.readInt16();
|
sample = compressedData.readInt16();
|
||||||
|
|
Loading…
Reference in a new issue