Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
be6eb016
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
be6eb016
编写于
3月 19, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 19, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2670 updating scripts for 3.1.5.5 (UPDATING USB_HEADSET,SETAUDIOSCENE)
Merge pull request !2670 from harshaprasad/Audio_FrameWork_19032022
上级
5f859b53
241e0aae
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
15 addition
and
104 deletion
+15
-104
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRenderer.test.js
...ndard/audioManager/src/main/js/test/AudioRenderer.test.js
+0
-104
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/SR000GHQBN.test.js
...standard/audioManager/src/main/js/test/SR000GHQBN.test.js
+15
-0
未找到文件。
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRenderer.test.js
浏览文件 @
be6eb016
...
...
@@ -84,24 +84,6 @@ describe('audioRenderer', function () {
console
.
info
(
'
AudioFrameworkRenderLog: AudioRenderer : STATE :
'
+
audioRen
.
state
);
await
audioManager
.
setAudioScene
(
AudioScene
).
then
(
async
function
()
{
console
.
info
(
'
AudioFrameworkRenderLog: setAudioScene : SUCCESS
'
);
await
audioManager
.
getAudioScene
().
then
(
async
function
(
data
)
{
console
.
info
(
'
AudioFrameworkRenderLog: getAudioScene : Value :
'
+
data
);
}).
catch
((
err
)
=>
{
console
.
info
(
'
AudioFrameworkRenderLog: getAudioScene : ERROR :
'
+
err
.
message
);
resultFlag
=
false
;
});
}).
catch
((
err
)
=>
{
console
.
info
(
'
AudioFrameworkRenderLog: setAudioScene : ERROR :
'
+
err
.
message
);
resultFlag
=
false
;
});
if
(
resultFlag
==
false
){
console
.
info
(
'
AudioFrameworkRenderLog: resultFlag :
'
+
resultFlag
);
return
resultFlag
;
}
console
.
info
(
'
AudioFrameworkRenderLog: AudioRenderer : STATE :
'
+
audioRen
.
state
);
await
audioRen
.
getStreamInfo
().
then
(
async
function
(
audioParamsGet
)
{
console
.
info
(
'
AudioFrameworkRenderLog: Renderer getStreamInfo:
'
);
console
.
info
(
'
AudioFrameworkRenderLog: Renderer sampleFormat:
'
+
audioParamsGet
.
sampleFormat
);
...
...
@@ -5123,21 +5105,6 @@ describe('audioRenderer', function () {
console
.
info
(
'
AudioFrameworkRenderLog: AudioRenderer : STATE :
'
+
audioRen
.
state
);
await
audioManager
.
setAudioScene
(
AudioScene
).
then
(
async
function
()
{
console
.
info
(
'
AudioFrameworkRenderLog: setAudioScene : SUCCESS
'
);
await
audioManager
.
getAudioScene
().
then
(
async
function
(
data
)
{
console
.
info
(
'
AudioFrameworkRenderLog: getAudioScene : Value :
'
+
data
);
}).
catch
((
err
)
=>
{
console
.
info
(
'
AudioFrameworkRenderLog: getAudioScene : ERROR :
'
+
err
.
message
);
resultFlag
=
false
;
});
}).
catch
((
err
)
=>
{
console
.
info
(
'
AudioFrameworkRenderLog: setAudioScene : ERROR :
'
+
err
.
message
);
resultFlag
=
false
;
});
console
.
info
(
'
AudioFrameworkRenderLog: AudioRenderer : STATE :
'
+
audioRen
.
state
);
await
audioRen
.
getStreamInfo
().
then
(
async
function
(
audioParamsGet
)
{
console
.
info
(
'
AudioFrameworkRenderLog: Renderer getStreamInfo:
'
);
console
.
info
(
'
AudioFrameworkRenderLog: Renderer sampleFormat:
'
+
audioParamsGet
.
sampleFormat
);
...
...
@@ -5298,21 +5265,6 @@ describe('audioRenderer', function () {
console
.
info
(
'
AudioFrameworkRenderLog: AudioRenderer : STATE :
'
+
audioRen
.
state
);
await
audioManager
.
setAudioScene
(
AudioScene
).
then
(
async
function
()
{
console
.
info
(
'
AudioFrameworkRenderLog: setAudioScene : SUCCESS
'
);
await
audioManager
.
getAudioScene
().
then
(
async
function
(
data
)
{
console
.
info
(
'
AudioFrameworkRenderLog: getAudioScene : Value :
'
+
data
);
}).
catch
((
err
)
=>
{
console
.
info
(
'
AudioFrameworkRenderLog: getAudioScene : ERROR :
'
+
err
.
message
);
resultFlag
=
false
;
});
}).
catch
((
err
)
=>
{
console
.
info
(
'
AudioFrameworkRenderLog: setAudioScene : ERROR :
'
+
err
.
message
);
resultFlag
=
false
;
});
console
.
info
(
'
AudioFrameworkRenderLog: AudioRenderer : STATE :
'
+
audioRen
.
state
);
await
audioRen
.
getStreamInfo
().
then
(
async
function
(
audioParamsGet
)
{
console
.
info
(
'
AudioFrameworkRenderLog: Renderer getStreamInfo:
'
);
console
.
info
(
'
AudioFrameworkRenderLog: Renderer sampleFormat:
'
+
audioParamsGet
.
sampleFormat
);
...
...
@@ -5471,34 +5423,6 @@ describe('audioRenderer', function () {
console
.
info
(
'
AudioFrameworkRenderLog: AudioRenderer : Path :
'
+
fpath
);
console
.
info
(
'
AudioFrameworkRenderLog: AudioRenderer : STATE :
'
+
audioRen
.
state
);
await
audioManager
.
setAudioScene
(
AudioScene
).
then
(
async
function
()
{
console
.
info
(
'
AudioFrameworkRenderLog: setAudioScene : SUCCESS
'
);
await
audioManager
.
getAudioScene
().
then
(
async
function
(
data
)
{
console
.
info
(
'
AudioFrameworkRenderLog: getAudioScene : Value :
'
+
data
);
}).
catch
((
err
)
=>
{
console
.
info
(
'
AudioFrameworkRenderLog: getAudioScene : ERROR :
'
+
err
.
message
);
resultFlag
=
false
;
});
}).
catch
((
err
)
=>
{
console
.
info
(
'
AudioFrameworkRenderLog: setAudioScene : ERROR :
'
+
err
.
message
);
resultFlag
=
false
;
});
console
.
info
(
'
AudioFrameworkRenderLog: AudioRenderer : STATE :
'
+
audioRen
.
state
);
await
audioRen
.
getStreamInfo
().
then
(
async
function
(
audioParamsGet
)
{
console
.
info
(
'
AudioFrameworkRenderLog: Renderer getStreamInfo:
'
);
console
.
info
(
'
AudioFrameworkRenderLog: Renderer sampleFormat:
'
+
audioParamsGet
.
sampleFormat
);
console
.
info
(
'
AudioFrameworkRenderLog: Renderer samplingRate:
'
+
audioParamsGet
.
samplingRate
);
console
.
info
(
'
AudioFrameworkRenderLog: Renderer channels:
'
+
audioParamsGet
.
channels
);
console
.
info
(
'
AudioFrameworkRenderLog: Renderer encodingType:
'
+
audioParamsGet
.
encodingType
);
}).
catch
((
err
)
=>
{
console
.
log
(
'
AudioFrameworkRenderLog: getStreamInfo :ERROR:
'
+
err
.
message
);
resultFlag
=
false
;
});
await
audioRen
.
getRendererInfo
().
then
(
async
function
(
audioParamsGet
)
{
console
.
info
(
'
AudioFrameworkRenderLog: Renderer RendererInfo:
'
);
console
.
info
(
'
AudioFrameworkRenderLog: Renderer content type:
'
+
audioParamsGet
.
content
);
...
...
@@ -5656,20 +5580,6 @@ describe('audioRenderer', function () {
console
.
info
(
'
AudioFrameworkRenderLog: AudioRenderer : STATE :
'
+
audioRen
.
state
);
await
audioManager
.
setAudioScene
(
AudioScene
).
then
(
async
function
()
{
console
.
info
(
'
AudioFrameworkRenderLog: setAudioScene : SUCCESS
'
);
await
audioManager
.
getAudioScene
().
then
(
async
function
(
data
)
{
console
.
info
(
'
AudioFrameworkRenderLog: getAudioScene : Value :
'
+
data
);
}).
catch
((
err
)
=>
{
console
.
info
(
'
AudioFrameworkRenderLog: getAudioScene : ERROR :
'
+
err
.
message
);
resultFlag
=
false
;
});
}).
catch
((
err
)
=>
{
console
.
info
(
'
AudioFrameworkRenderLog: setAudioScene : ERROR :
'
+
err
.
message
);
resultFlag
=
false
;
});
console
.
info
(
'
AudioFrameworkRenderLog: AudioRenderer : STATE :
'
+
audioRen
.
state
);
await
audioRen
.
getStreamInfo
().
then
(
async
function
(
audioParamsGet
)
{
console
.
info
(
'
AudioFrameworkRenderLog: Renderer getStreamInfo:
'
);
...
...
@@ -8052,20 +7962,6 @@ describe('audioRenderer', function () {
console
.
info
(
'
AudioFrameworkRenderLog: AudioRenderer : STATE :
'
+
audioRen
.
state
);
await
audioManager
.
setAudioScene
(
AudioScene
).
then
(
async
function
()
{
console
.
info
(
'
AudioFrameworkRenderLog: setAudioScene : SUCCESS
'
);
await
audioManager
.
getAudioScene
().
then
(
async
function
(
data
)
{
console
.
info
(
'
AudioFrameworkRenderLog: getAudioScene : Value :
'
+
data
);
}).
catch
((
err
)
=>
{
console
.
info
(
'
AudioFrameworkRenderLog: getAudioScene : ERROR :
'
+
err
.
message
);
resultFlag
=
false
;
});
}).
catch
((
err
)
=>
{
console
.
info
(
'
AudioFrameworkRenderLog: setAudioScene : ERROR :
'
+
err
.
message
);
resultFlag
=
false
;
});
console
.
info
(
'
AudioFrameworkRenderLog: AudioRenderer : STATE :
'
+
audioRen
.
state
);
await
audioRen
.
getStreamInfo
().
then
(
async
function
(
audioParamsGet
)
{
console
.
info
(
'
AudioFrameworkRenderLog: Renderer getStreamInfo:
'
);
...
...
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/SR000GHQBN.test.js
浏览文件 @
be6eb016
...
...
@@ -1607,6 +1607,21 @@ describe('audioManger', function () {
done
();
})
/* *
* @tc.number : SUB_AUDIO_MANAGER_DeviceType_003
* @tc.name : DeviceType - USB_HEADSET
* @tc.desc : DeviceType - USB_HEADSET
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_AUDIO_MANAGER_DeviceType_003
'
,
0
,
async
function
(
done
)
{
expect
(
audio
.
DeviceType
.
USB_HEADSET
).
assertEqual
(
22
);
await
sleep
(
50
);
done
();
})
})
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录