Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
0a2a6f9c
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看板
未验证
提交
0a2a6f9c
编写于
8月 05, 2022
作者:
O
openharmony_ci
提交者:
Gitee
8月 05, 2022
浏览文件
操作
浏览文件
下载
差异文件
!4818 audioXTS整改
Merge pull request !4818 from liuxueqi/OpenHarmony-3.1-Release
上级
c82ae822
b066713e
变更
3
展开全部
显示空白变更内容
内联
并排
Showing
3 changed file
with
744 addition
and
825 deletion
+744
-825
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCapturer.test.js
...ndard/audioManager/src/main/js/test/AudioCapturer.test.js
+15
-3
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioFramework.test.js
...dard/audioManager/src/main/js/test/AudioFramework.test.js
+7
-7
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRenderer.test.js
...ndard/audioManager/src/main/js/test/AudioRenderer.test.js
+722
-815
未找到文件。
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCapturer.test.js
浏览文件 @
0a2a6f9c
...
@@ -78,14 +78,26 @@ describe('audioCapturer', function () {
...
@@ -78,14 +78,26 @@ describe('audioCapturer', function () {
console
.
info
(
'
AudioFrameworkRecLog: Promise : Audio Recording Function
'
);
console
.
info
(
'
AudioFrameworkRecLog: Promise : Audio Recording Function
'
);
var
audioCap
;
var
audioCap
;
let
isPass
=
false
;
await
audio
.
createAudioCapturer
(
AudioCapturerOptions
).
then
(
async
function
(
data
)
{
await
audio
.
createAudioCapturer
(
AudioCapturerOptions
).
then
(
async
function
(
data
)
{
audioCap
=
data
;
audioCap
=
data
;
console
.
info
(
'
AudioFrameworkRecLog: AudioCapturer Created : Success : Stream Type: SUCCESS
'
);
console
.
info
(
'
AudioFrameworkRecLog: AudioCapturer Created : Success : Stream Type: SUCCESS
'
);
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
info
(
'
AudioFrameworkRecLog: AudioCapturer Created : ERROR :
'
+
err
.
message
);
console
.
info
(
'
AudioFrameworkRecLog: AudioCapturer Created : ERROR :
'
+
err
.
message
);
LE24
=
audio
.
AudioSampleFormat
.
SAMPLE_FORMAT_S24LE
;
LE32
=
audio
.
AudioSampleFormat
.
SAMPLE_FORMAT_S32LE
;
let
sampleFormat
=
AudioRendererOptions
.
streamInfo
.
sampleFormat
;
if
((
sampleFormat
==
LE24
||
sampleFormat
==
LE32
)
&&
err
.
code
==
202
)
{
isPass
=
true
;
return
;
}
return
resultFlag
;
return
resultFlag
;
});
});
console
.
log
(
"
isPass:
"
+
isPass
);
if
(
isPass
)
{
resultFlag
=
true
;
return
resultFlag
;
}
console
.
info
(
'
AudioFrameworkRecLog: AudioCapturer : Path :
'
+
fpath
);
console
.
info
(
'
AudioFrameworkRecLog: AudioCapturer : Path :
'
+
fpath
);
...
@@ -5657,7 +5669,7 @@ describe('audioCapturer', function () {
...
@@ -5657,7 +5669,7 @@ describe('audioCapturer', function () {
});
});
await
sleep
(
1000
);
await
sleep
(
1000
);
audioCapCallBack
.
on
(
'
periodReach
'
,
1000
,
(
position
)
=>
{
audioCapCallBack
.
on
(
'
periodReach
'
,
1000
,
(
position
)
=>
{
if
(
position
==
"
1000
"
)
{
if
(
position
==
1000
)
{
console
.
info
(
'
AudioFrameworkRecLog: ---------ON TRIGGERED SUCCESSFULLY---------
'
);
console
.
info
(
'
AudioFrameworkRecLog: ---------ON TRIGGERED SUCCESSFULLY---------
'
);
console
.
info
(
'
AudioRenderLog: mark reached:
'
+
position
);
console
.
info
(
'
AudioRenderLog: mark reached:
'
+
position
);
stateFlag
=
true
;
stateFlag
=
true
;
...
@@ -5812,7 +5824,7 @@ describe('audioCapturer', function () {
...
@@ -5812,7 +5824,7 @@ describe('audioCapturer', function () {
});
});
await
sleep
(
1000
);
await
sleep
(
1000
);
audioCapCallBack
.
on
(
'
periodReach
'
,
1
,
(
position
)
=>
{
audioCapCallBack
.
on
(
'
periodReach
'
,
1
,
(
position
)
=>
{
if
(
position
==
"
1
"
)
{
if
(
position
==
1
)
{
console
.
info
(
'
AudioFrameworkRecLog: ---------ON TRIGGERED SUCCESSFULLY---------
'
);
console
.
info
(
'
AudioFrameworkRecLog: ---------ON TRIGGERED SUCCESSFULLY---------
'
);
console
.
info
(
'
AudioRenderLog: mark reached:
'
+
position
);
console
.
info
(
'
AudioRenderLog: mark reached:
'
+
position
);
stateFlag
=
true
;
stateFlag
=
true
;
...
...
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioFramework.test.js
浏览文件 @
0a2a6f9c
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRenderer.test.js
浏览文件 @
0a2a6f9c
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录