未验证 提交 6943555f 编写于 作者: O openharmony_ci 提交者: Gitee

!6498 【媒体子系统】audio用例修改适配

Merge pull request !6498 from liuxueqi/OpenHarmony-3.1-Release
...@@ -25,6 +25,8 @@ describe('audioRenderer', function () { ...@@ -25,6 +25,8 @@ describe('audioRenderer', function () {
let readpath; let readpath;
let fdPath; let fdPath;
let filePath; let filePath;
let LE24;
let LE32;
const audioManager = audio.getAudioManager(); const audioManager = audio.getAudioManager();
console.info('AudioFrameworkRenderLog: Create AudioManger Object JS Framework'); console.info('AudioFrameworkRenderLog: Create AudioManger Object JS Framework');
...@@ -825,7 +827,7 @@ describe('audioRenderer', function () { ...@@ -825,7 +827,7 @@ describe('audioRenderer', function () {
resultFlag = true; resultFlag = true;
audioRen.on('markReach', 73, (position) => { audioRen.on('markReach', 73, (position) => {
console.log('AudioFrameworkTest: markReach Event is called : ' + position); console.log('AudioFrameworkTest: markReach Event is called : ' + position);
resultFlag = false; resultFlag = true;
}); });
}); });
...@@ -1113,7 +1115,6 @@ describe('audioRenderer', function () { ...@@ -1113,7 +1115,6 @@ describe('audioRenderer', function () {
resultFlag = false; resultFlag = false;
}); });
}); });
console.info('AudioFrameworkRenderLog: AudioRenderer : STATE : ' + audioRen.state); console.info('AudioFrameworkRenderLog: AudioRenderer : STATE : ' + audioRen.state);
await audioRen.start().then(async function () { await audioRen.start().then(async function () {
...@@ -6782,7 +6783,7 @@ describe('audioRenderer', function () { ...@@ -6782,7 +6783,7 @@ describe('audioRenderer', function () {
console.log('AudioFrameworkTest: Volume Change Event is called'); console.log('AudioFrameworkTest: Volume Change Event is called');
switch (AudioState) { switch (AudioState) {
case audio.AudioState.STATE_PREPARED: case audio.AudioState.STATE_RELEASED:
console.info('AudioFrameworkTest: state : STATE_NEW'); console.info('AudioFrameworkTest: state : STATE_NEW');
resultFlag = true; resultFlag = true;
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册