diff --git a/validator/acts_validator/src/main/ets/pages/model/AudioRenderer.ts b/validator/acts_validator/src/main/ets/pages/model/AudioRenderer.ts index af2f642b13122ab7a8365a5610835a992e652b32..c0a9203889ff9fc7009894ed3e29141b46010430 100644 --- a/validator/acts_validator/src/main/ets/pages/model/AudioRenderer.ts +++ b/validator/acts_validator/src/main/ets/pages/model/AudioRenderer.ts @@ -57,7 +57,7 @@ class AudioRenderer { Logger.info(this.tag, `audioRenderer bufferSize:` + JSON.stringify(bufferSize)) // let stat = await fs.stat(this.fd); // let len = stat.size % bufferSize == 0 ? Math.floor(stat.size / bufferSize) : Math.floor(stat.size / bufferSize + 1); - len = this.length % bufferSize == 0 ? Math.floor(this.length / bufferSize) : Math.floor(this.length / bufferSize + 1); + let len = this.length % bufferSize == 0 ? Math.floor(this.length / bufferSize) : Math.floor(this.length / bufferSize + 1); let buf = new ArrayBuffer(bufferSize); while (true) { for (let i = 0;i < len; i++) {