Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
24eaf7e0
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看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
24eaf7e0
编写于
6月 08, 2022
作者:
F
FULIZHONG
提交者:
Gitee
6月 08, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify audioRecorder parameter Signed-off-by: FULIZHONG<fulizhong1@huawei.com>
上级
cc6a1df1
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
23 addition
and
23 deletion
+23
-23
multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioFUNC.test.js
...order/src/main/js/test/RecorderLocalTestAudioFUNC.test.js
+23
-23
未找到文件。
multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioFUNC.test.js
浏览文件 @
24eaf7e0
...
...
@@ -330,7 +330,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
audioConfig
.
uri
=
fdPath
;
audioConfig
.
audioSampleRate
=
32000
;
// samplerate 32000
audioConfig
.
numberOfChannels
=
CHANNEL_ONE
;
audioConfig
.
f
ileF
ormat
=
FORMAT_MP4
;
audioConfig
.
format
=
FORMAT_MP4
;
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
STOP_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -350,7 +350,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
audioConfig
.
uri
=
fdPath
;
audioConfig
.
audioSampleRate
=
44100
;
// samplerate 44100
audioConfig
.
numberOfChannels
=
CHANNEL_TWO
;
audioConfig
.
f
ileF
ormat
=
FORMAT_MP4
;
audioConfig
.
format
=
FORMAT_MP4
;
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
STOP_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -370,7 +370,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
audioConfig
.
uri
=
fdPath
;
audioConfig
.
audioSampleRate
=
64000
;
// samplerate 64000
audioConfig
.
numberOfChannels
=
CHANNEL_ONE
;
audioConfig
.
f
ileF
ormat
=
FORMAT_M4A
;
audioConfig
.
format
=
FORMAT_M4A
;
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
STOP_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -390,7 +390,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
audioConfig
.
uri
=
fdPath
;
audioConfig
.
audioSampleRate
=
96000
;
// samplerate 96000
audioConfig
.
numberOfChannels
=
CHANNEL_TWO
;
audioConfig
.
f
ileF
ormat
=
FORMAT_M4A
;
audioConfig
.
format
=
FORMAT_M4A
;
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
STOP_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -411,7 +411,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
audioConfig
.
audioSampleRate
=
22050
;
// samplerate 22050
audioConfig
.
audioEncodeBitRate
=
8000
;
// encodeBitrate 8000
audioConfig
.
numberOfChannels
=
CHANNEL_TWO
;
audioConfig
.
f
ileF
ormat
=
FORMAT_MP4
;
audioConfig
.
format
=
FORMAT_MP4
;
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
STOP_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -432,7 +432,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
audioConfig
.
audioSampleRate
=
44100
;
// samplerate 44100
audioConfig
.
audioEncodeBitRate
=
16000
;
// encodeBitrate 16000
audioConfig
.
numberOfChannels
=
CHANNEL_ONE
;
audioConfig
.
f
ileF
ormat
=
FORMAT_MP4
;
audioConfig
.
format
=
FORMAT_MP4
;
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
STOP_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -453,7 +453,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
audioConfig
.
audioSampleRate
=
44100
;
// samplerate 44100
audioConfig
.
audioEncodeBitRate
=
32000
;
// encodeBitrate 32000
audioConfig
.
numberOfChannels
=
CHANNEL_ONE
;
audioConfig
.
f
ileF
ormat
=
FORMAT_M4A
;
audioConfig
.
format
=
FORMAT_M4A
;
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
STOP_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -474,7 +474,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
audioConfig
.
audioSampleRate
=
44100
;
// samplerate 44100
audioConfig
.
audioEncodeBitRate
=
64000
;
// encodeBitrate 64000
audioConfig
.
numberOfChannels
=
CHANNEL_TWO
;
audioConfig
.
f
ileF
ormat
=
FORMAT_M4A
;
audioConfig
.
format
=
FORMAT_M4A
;
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
STOP_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -495,7 +495,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
audioConfig
.
audioSampleRate
=
44100
;
// samplerate 44100
audioConfig
.
audioEncodeBitRate
=
112000
;
// encodeBitrate 112000
audioConfig
.
numberOfChannels
=
CHANNEL_TWO
;
audioConfig
.
f
ileF
ormat
=
FORMAT_M4A
;
audioConfig
.
format
=
FORMAT_M4A
;
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
STOP_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -515,7 +515,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
audioConfig
.
uri
=
fdPath
;
audioConfig
.
audioEncodeBitRate
=
22050
;
// samplerate 22050
audioConfig
.
audioSampleRate
=
22050
;
// encodeBitrate 22050
audioConfig
.
f
ileF
ormat
=
FORMAT_MP4
;
audioConfig
.
format
=
FORMAT_MP4
;
audioConfig
.
numberOfChannels
=
CHANNEL_TWO
;
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
STOP_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -536,7 +536,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
audioConfig
.
uri
=
fdPath
;
audioConfig
.
audioEncodeBitRate
=
22050
;
// samplerate 22050
audioConfig
.
audioSampleRate
=
22050
;
// encodeBitrate 22050
audioConfig
.
f
ileF
ormat
=
FORMAT_M4A
;
audioConfig
.
format
=
FORMAT_M4A
;
audioConfig
.
numberOfChannels
=
CHANNEL_TWO
;
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
STOP_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -555,7 +555,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
it
(
'
SUB_MEDIA_RECORDER_AUDIO_FUNCTION_06_0100
'
,
0
,
async
function
(
done
)
{
await
getFd
(
'
test16.m4a
'
);
audioConfig
.
uri
=
fdPath
;
audioConfig
.
f
ileF
ormat
=
FORMAT_M4A
;
audioConfig
.
format
=
FORMAT_M4A
;
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
STOP_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -573,7 +573,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
it
(
'
SUB_MEDIA_RECORDER_AUDIO_FUNCTION_06_0200
'
,
0
,
async
function
(
done
)
{
await
getFd
(
'
test17.m4a
'
);
audioConfig
.
uri
=
fdPath
;
audioConfig
.
f
ileF
ormat
=
FORMAT_M4A
;
audioConfig
.
format
=
FORMAT_M4A
;
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
PAUSE_STATE
,
STOP_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -591,7 +591,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
it
(
'
SUB_MEDIA_RECORDER_AUDIO_FUNCTION_06_0300
'
,
0
,
async
function
(
done
)
{
await
getFd
(
'
test18.m4a
'
);
audioConfig
.
uri
=
fdPath
;
audioConfig
.
f
ileF
ormat
=
FORMAT_M4A
;
audioConfig
.
format
=
FORMAT_M4A
;
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
PAUSE_STATE
,
RESUME_STATE
,
STOP_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -610,7 +610,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
it
(
'
SUB_MEDIA_RECORDER_AUDIO_FUNCTION_06_0500
'
,
0
,
async
function
(
done
)
{
await
getFd
(
'
test19.m4a
'
);
audioConfig
.
uri
=
fdPath
;
audioConfig
.
f
ileF
ormat
=
FORMAT_M4A
;
audioConfig
.
format
=
FORMAT_M4A
;
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
RESET_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -628,7 +628,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
it
(
'
SUB_MEDIA_RECORDER_AUDIO_FUNCTION_06_0600
'
,
0
,
async
function
(
done
)
{
await
getFd
(
'
test20.m4a
'
);
audioConfig
.
uri
=
fdPath
;
audioConfig
.
f
ileF
ormat
=
FORMAT_M4A
;
audioConfig
.
format
=
FORMAT_M4A
;
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
PAUSE_STATE
,
RESUME_STATE
,
PAUSE_STATE
,
STOP_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -647,7 +647,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
it
(
'
SUB_MEDIA_RECORDER_AUDIO_FUNCTION_06_0700
'
,
0
,
async
function
(
done
)
{
await
getFd
(
'
test21.m4a
'
);
audioConfig
.
uri
=
fdPath
;
audioConfig
.
f
ileF
ormat
=
FORMAT_M4A
;
audioConfig
.
format
=
FORMAT_M4A
;
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
PAUSE_STATE
,
STOP_STATE
,
RESET_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -666,7 +666,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
it
(
'
SUB_MEDIA_RECORDER_AUDIO_FUNCTION_06_0800
'
,
0
,
async
function
(
done
)
{
await
getFd
(
'
test22.m4a
'
);
audioConfig
.
uri
=
fdPath
;
audioConfig
.
f
ileF
ormat
=
FORMAT_M4A
;
audioConfig
.
format
=
FORMAT_M4A
;
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
PAUSE_STATE
,
RESUME_STATE
,
STOP_STATE
,
RESET_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -685,7 +685,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
it
(
'
SUB_MEDIA_RECORDER_AUDIO_FUNCTION_06_0900
'
,
0
,
async
function
(
done
)
{
await
getFd
(
'
test23.m4a
'
);
audioConfig
.
uri
=
fdPath
;
audioConfig
.
f
ileF
ormat
=
FORMAT_M4A
;
audioConfig
.
format
=
FORMAT_M4A
;
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
RESET_STATE
,
PRE_STATE
,
START_STATE
,
PAUSE_STATE
,
RESUME_STATE
,
STOP_STATE
,
RESET_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -704,7 +704,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
it
(
'
SUB_MEDIA_RECORDER_AUDIO_FUNCTION_06_1000
'
,
0
,
async
function
(
done
)
{
await
getFd
(
'
test24.m4a
'
);
audioConfig
.
uri
=
fdPath
;
audioConfig
.
f
ileF
ormat
=
FORMAT_M4A
;
audioConfig
.
format
=
FORMAT_M4A
;
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
RESET_STATE
,
PRE_STATE
,
START_STATE
,
PAUSE_STATE
,
STOP_STATE
,
RESET_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -723,7 +723,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
it
(
'
SUB_MEDIA_RECORDER_AUDIO_FUNCTION_06_1100
'
,
0
,
async
function
(
done
)
{
await
getFd
(
'
test25.mp4
'
);
audioConfig
.
uri
=
fdPath
;
audioConfig
.
f
ileF
ormat
=
FORMAT_MP4
;
audioConfig
.
format
=
FORMAT_MP4
;
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
RESET_STATE
,
PRE_STATE
,
START_STATE
,
STOP_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -742,7 +742,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
it
(
'
SUB_MEDIA_RECORDER_AUDIO_FUNCTION_06_1200
'
,
0
,
async
function
(
done
)
{
await
getFd
(
'
test26.mp4
'
);
audioConfig
.
uri
=
fdPath
;
audioConfig
.
f
ileF
ormat
=
FORMAT_MP4
;
audioConfig
.
format
=
FORMAT_MP4
;
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
PAUSE_STATE
,
START_STATE
,
ERROR_STATE
,
STOP_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -761,7 +761,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
it
(
'
SUB_MEDIA_RECORDER_AUDIO_FUNCTION_06_1300
'
,
0
,
async
function
(
done
)
{
await
getFd
(
'
test27.mp4
'
);
audioConfig
.
uri
=
fdPath
;
audioConfig
.
f
ileF
ormat
=
FORMAT_MP4
;
audioConfig
.
format
=
FORMAT_MP4
;
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
STOP_STATE
,
PAUSE_STATE
,
ERROR_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录