From 7d56c17be248d7922ae2e777b5929c2dea265f27 Mon Sep 17 00:00:00 2001 From: Harshaprasad Date: Thu, 26 May 2022 08:54:43 +0530 Subject: [PATCH] Adding config.json and modifying buffer reads for renderer Signed-off-by: Harshaprasad --- .../audioManager/src/main/config.json | 44 ++++++++++++++++++- .../src/main/js/test/AudioRenderer.test.js | 2 +- 2 files changed, 44 insertions(+), 2 deletions(-) diff --git a/multimedia/audio/audio_js_standard/audioManager/src/main/config.json b/multimedia/audio/audio_js_standard/audioManager/src/main/config.json index cc29d5d6c..9bed2c591 100755 --- a/multimedia/audio/audio_js_standard/audioManager/src/main/config.json +++ b/multimedia/audio/audio_js_standard/audioManager/src/main/config.json @@ -69,6 +69,48 @@ "autoDesignWidth": true } } - ] + ], + "reqPermissions": [ + { + "name": "ohos.permission.GET_BUNDLE_INFO", + "reason": "use ohos.permission.GET_BUNDLE_INFO" + }, + { + "name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED", + "reason": "use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED" + }, + { + "name": "ohos.permission.GRANT_SENSITIVE_PERMISSIONS", + "reason": "use ohos.permission.GRANT_SENSITIVE_PERMISSIONS" + }, + { + "name": "ohos.permission.REVOKE_SENSITIVE_PERMISSIONS", + "reason": "use ohos.permission.REVOKE_SENSITIVE_PERMISSIONS" + }, + { + "name": "ohos.permission.MEDIA_LOCATION", + "reason": "use ohos.permission.MEDIA_LOCATION" + }, + { + "name": "ohos.permission.READ_MEDIA", + "reason": "use ohos.permission.READ_MEDIA" + }, + { + "name": "ohos.permission.WRITE_MEDIA", + "reason": "use ohos.permission.WRITE_MEDIA" + }, + { + "name": "ohos.permission.MICROPHONE", + "reason": "use ohos.permission.MICROPHONE" + }, + { + "name": "ohos.permission.ACCESS_NOTIFICATION_POLICY", + "reason": "use ohos.permission.ACCESS_NOTIFICATION_POLICY" + }, + { + "name": "ohos.permission.MODIFY_AUDIO_SETTINGS", + "reason": "use ohos.permission.MODIFY_AUDIO_SETTINGS" + } + ] } } \ No newline at end of file diff --git a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRenderer.test.js b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRenderer.test.js index 03f637af7..5321bf3ee 100644 --- a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRenderer.test.js +++ b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRenderer.test.js @@ -1384,7 +1384,7 @@ describe('audioRenderer', function () { await sleep(100); console.info('AudioFrameworkRenderLog: waitTime : ' +waitTime); - while (rlen < totalSize/4) { + while (rlen < totalSize/10) { let buf = new ArrayBuffer(bufferSize); rlen += ss.readSync(buf); console.info('BufferAudioFramework: bytes read from file: ' +rlen); -- GitLab