未验证 提交 5c34efaf 编写于 作者: O openharmony_ci 提交者: Gitee

!9986 audio内录去掉权限弹框

Merge pull request !9986 from 杜蕊/master
......@@ -51,8 +51,8 @@ export default function audioCapturer() {
await button.click();
}
beforeAll(async function () {
await getPermission();
await driveFn();
// await getPermission();
// await driveFn();
console.info('TestLog: Start Testing AudioPlaybackCapturer Interfaces');
})
......@@ -154,9 +154,15 @@ export default function audioCapturer() {
totalSize = totalSize - 44;
console.info(`${Tag}: File size : Removing header: ${totalSize}`);
let rlen = 0;
let readSync = 0
while (rlen < totalSize) {
let buf = new ArrayBuffer(bufferSize);
rlen += ss.readSync(buf);
readSync = ss.readSync(buf);
if(readSync <= 0){
console.info(`${Tag}:BufferAudioFramework: readSync: ${readSync}`);
break;
}
console.info(`${Tag}:BufferAudioFramework: bytes read from file: ${rlen}`);
await audioRen.write(buf);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册