提交 17c25cf5 编写于 作者: Q qinliwen

<bug fixed>

Signed-off-by: Nqinliwen <qinliwen3@huawei.com>
上级 2ee3b2d8
...@@ -57,7 +57,7 @@ class AudioRenderer { ...@@ -57,7 +57,7 @@ class AudioRenderer {
Logger.info(this.tag, `audioRenderer bufferSize:` + JSON.stringify(bufferSize)) Logger.info(this.tag, `audioRenderer bufferSize:` + JSON.stringify(bufferSize))
// let stat = await fs.stat(this.fd); // let stat = await fs.stat(this.fd);
// let len = stat.size % bufferSize == 0 ? Math.floor(stat.size / bufferSize) : Math.floor(stat.size / bufferSize + 1); // 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); let buf = new ArrayBuffer(bufferSize);
while (true) { while (true) {
for (let i = 0;i < len; i++) { for (let i = 0;i < len; i++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册