Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
075ba277
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看板
提交
075ba277
编写于
7月 04, 2022
作者:
Z
zhujie81
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update interrupt xts test
Signed-off-by:
N
zhujie81
<
zhujie81@huawei.com
>
上级
60a66d39
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
0 addition
and
411 deletion
+0
-411
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRenderer.test.js
...ndard/audioManager/src/main/js/test/AudioRenderer.test.js
+0
-411
未找到文件。
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRenderer.test.js
浏览文件 @
075ba277
...
@@ -7523,417 +7523,6 @@ describe('audioRenderer', function () {
...
@@ -7523,417 +7523,6 @@ describe('audioRenderer', function () {
done
();
done
();
})
})
/* *
* @tc.number : SUB_AUDIO_RENDERER_Play_audio_082
* @tc.name : AudioRenderer-Set11-Media - CALLBACK
* @tc.desc : AudioRenderer with parameter set 11
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_AUDIO_RENDERER_Play_audio_082
'
,
0
,
async
function
(
done
)
{
var
AudioStreamInfo
=
{
samplingRate
:
audio
.
AudioSamplingRate
.
SAMPLE_RATE_48000
,
channels
:
audio
.
AudioChannel
.
CHANNEL_2
,
sampleFormat
:
audio
.
AudioSampleFormat
.
SAMPLE_FORMAT_S32LE
,
encodingType
:
audio
.
AudioEncodingType
.
ENCODING_TYPE_RAW
}
var
AudioRendererInfo
=
{
content
:
audio
.
ContentType
.
CONTENT_TYPE_SPEECH
,
usage
:
audio
.
StreamUsage
.
STREAM_USAGE_VOICE_COMMUNICATION
,
rendererFlags
:
1
}
var
AudioRendererOptions
=
{
streamInfo
:
AudioStreamInfo
,
rendererInfo
:
AudioRendererInfo
}
readpath
=
'
StarWars10s-2C-48000-4SW.wav
'
await
getFdRead
(
readpath
,
done
)
var
resultFlag
=
await
playbackCB
(
AudioRendererOptions
,
readpath
);
console
.
info
(
'
AudioFrameworkRenderLog: resultFlag :
'
+
resultFlag
);
await
sleep
(
9000
);
expect
(
resultFlag
).
assertTrue
();
await
closeFileDescriptor
(
readpath
);
done
();
})
/* *
* @tc.number : SUB_AUDIO_RENDERER_Play_audio_083
* @tc.name : AudioRenderer-Set1-Media - CALLBACK
* @tc.desc : AudioRenderer with parameter set 1
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_AUDIO_RENDERER_Play_audio_083
'
,
0
,
async
function
(
done
)
{
var
AudioStreamInfo
=
{
samplingRate
:
audio
.
AudioSamplingRate
.
SAMPLE_RATE_44100
,
channels
:
audio
.
AudioChannel
.
CHANNEL_1
,
sampleFormat
:
audio
.
AudioSampleFormat
.
SAMPLE_FORMAT_S16LE
,
encodingType
:
audio
.
AudioEncodingType
.
ENCODING_TYPE_RAW
}
var
AudioRendererInfo
=
{
content
:
audio
.
ContentType
.
CONTENT_TYPE_SPEECH
,
usage
:
audio
.
StreamUsage
.
STREAM_USAGE_VOICE_COMMUNICATION
,
rendererFlags
:
1
}
var
AudioRendererOptions
=
{
streamInfo
:
AudioStreamInfo
,
rendererInfo
:
AudioRendererInfo
}
readpath
=
'
StarWars10s-1C-44100-2SW.wav
'
await
getFdRead
(
readpath
,
done
)
var
resultFlag
=
await
playbackCB
(
AudioRendererOptions
,
readpath
);
console
.
info
(
'
AudioFrameworkRenderLog: resultFlag :
'
+
resultFlag
);
await
sleep
(
5000
);
expect
(
resultFlag
).
assertTrue
();
await
closeFileDescriptor
(
readpath
);
done
();
})
/* *
* @tc.number : SUB_AUDIO_RENDERER_Play_audio_084
* @tc.name : AudioRenderer-Set2-Media - CALLBACK
* @tc.desc : AudioRenderer with parameter set 2
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_AUDIO_RENDERER_Play_audio_084
'
,
0
,
async
function
(
done
)
{
var
AudioStreamInfo
=
{
samplingRate
:
audio
.
AudioSamplingRate
.
SAMPLE_RATE_8000
,
channels
:
audio
.
AudioChannel
.
CHANNEL_1
,
sampleFormat
:
audio
.
AudioSampleFormat
.
SAMPLE_FORMAT_S16LE
,
encodingType
:
audio
.
AudioEncodingType
.
ENCODING_TYPE_RAW
}
var
AudioRendererInfo
=
{
content
:
audio
.
ContentType
.
CONTENT_TYPE_SPEECH
,
usage
:
audio
.
StreamUsage
.
STREAM_USAGE_VOICE_COMMUNICATION
,
rendererFlags
:
1
}
var
AudioRendererOptions
=
{
streamInfo
:
AudioStreamInfo
,
rendererInfo
:
AudioRendererInfo
}
readpath
=
'
StarWars10s-1C-8000-2SW.wav
'
await
getFdRead
(
readpath
,
done
)
var
resultFlag
=
await
playbackCB
(
AudioRendererOptions
,
readpath
);
await
sleep
(
100
);
console
.
info
(
'
AudioFrameworkRenderLog: resultFlag :
'
+
resultFlag
);
expect
(
resultFlag
).
assertTrue
();
await
closeFileDescriptor
(
readpath
);
done
();
})
/* *
* @tc.number : SUB_AUDIO_RENDERER_Play_audio_085
* @tc.name : AudioRenderer-Set3-Media - CALLBACK
* @tc.desc : AudioRenderer with parameter set 3
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_AUDIO_RENDERER_Play_audio_085
'
,
0
,
async
function
(
done
)
{
var
AudioStreamInfo
=
{
samplingRate
:
audio
.
AudioSamplingRate
.
SAMPLE_RATE_32000
,
channels
:
audio
.
AudioChannel
.
CHANNEL_1
,
sampleFormat
:
audio
.
AudioSampleFormat
.
SAMPLE_FORMAT_U8
,
encodingType
:
audio
.
AudioEncodingType
.
ENCODING_TYPE_RAW
}
var
AudioRendererInfo
=
{
content
:
audio
.
ContentType
.
CONTENT_TYPE_SPEECH
,
usage
:
audio
.
StreamUsage
.
STREAM_USAGE_VOICE_COMMUNICATION
,
rendererFlags
:
1
}
var
AudioRendererOptions
=
{
streamInfo
:
AudioStreamInfo
,
rendererInfo
:
AudioRendererInfo
}
readpath
=
'
StarWars10s-1C-32000-1SW.wav
'
await
getFdRead
(
readpath
,
done
)
var
resultFlag
=
await
playbackCB
(
AudioRendererOptions
,
readpath
);
await
sleep
(
100
);
console
.
info
(
'
AudioFrameworkRenderLog: resultFlag :
'
+
resultFlag
);
expect
(
resultFlag
).
assertTrue
();
await
closeFileDescriptor
(
readpath
);
done
();
})
/* *
* @tc.number : SUB_AUDIO_RENDERER_Play_audio_086
* @tc.name : AudioRenderer-Set4-Media - CALLBACK
* @tc.desc : AudioRenderer with parameter set 4
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_AUDIO_RENDERER_Play_audio_086
'
,
0
,
async
function
(
done
)
{
var
AudioStreamInfo
=
{
samplingRate
:
audio
.
AudioSamplingRate
.
SAMPLE_RATE_64000
,
channels
:
audio
.
AudioChannel
.
CHANNEL_1
,
sampleFormat
:
audio
.
AudioSampleFormat
.
SAMPLE_FORMAT_S24LE
,
encodingType
:
audio
.
AudioEncodingType
.
ENCODING_TYPE_RAW
}
var
AudioRendererInfo
=
{
content
:
audio
.
ContentType
.
CONTENT_TYPE_SPEECH
,
usage
:
audio
.
StreamUsage
.
STREAM_USAGE_VOICE_COMMUNICATION
,
rendererFlags
:
1
}
var
AudioRendererOptions
=
{
streamInfo
:
AudioStreamInfo
,
rendererInfo
:
AudioRendererInfo
}
readpath
=
'
StarWars10s-1C-64000-3SW.wav
'
await
getFdRead
(
readpath
,
done
)
var
resultFlag
=
await
playbackCB
(
AudioRendererOptions
,
readpath
);
await
sleep
(
100
);
console
.
info
(
'
AudioFrameworkRenderLog: resultFlag :
'
+
resultFlag
);
expect
(
resultFlag
).
assertTrue
();
await
closeFileDescriptor
(
readpath
);
done
();
})
/* *
* @tc.number : SUB_AUDIO_RENDERER_Play_audio_087
* @tc.name : AudioRenderer-Set5-Media - CALLBACK
* @tc.desc : AudioRenderer with parameter set 5
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_AUDIO_RENDERER_Play_audio_087
'
,
0
,
async
function
(
done
)
{
var
AudioStreamInfo
=
{
samplingRate
:
audio
.
AudioSamplingRate
.
SAMPLE_RATE_96000
,
channels
:
audio
.
AudioChannel
.
CHANNEL_1
,
sampleFormat
:
audio
.
AudioSampleFormat
.
SAMPLE_FORMAT_S32LE
,
encodingType
:
audio
.
AudioEncodingType
.
ENCODING_TYPE_RAW
}
var
AudioRendererInfo
=
{
content
:
audio
.
ContentType
.
CONTENT_TYPE_SPEECH
,
usage
:
audio
.
StreamUsage
.
STREAM_USAGE_VOICE_COMMUNICATION
,
rendererFlags
:
1
}
var
AudioRendererOptions
=
{
streamInfo
:
AudioStreamInfo
,
rendererInfo
:
AudioRendererInfo
}
readpath
=
'
StarWars10s-1C-96000-4SW.wav
'
await
getFdRead
(
readpath
,
done
)
var
resultFlag
=
await
playbackCB
(
AudioRendererOptions
,
readpath
);
await
sleep
(
100
);
console
.
info
(
'
AudioFrameworkRenderLog: resultFlag :
'
+
resultFlag
);
expect
(
resultFlag
).
assertTrue
();
await
closeFileDescriptor
(
readpath
);
done
();
})
/* *
* @tc.number : SUB_AUDIO_RENDERER_Play_audio_088
* @tc.name : AudioRenderer-Set6-Media - CALLBACK
* @tc.desc : AudioRenderer with parameter set 6
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_AUDIO_RENDERER_Play_audio_088
'
,
0
,
async
function
(
done
)
{
var
AudioStreamInfo
=
{
samplingRate
:
audio
.
AudioSamplingRate
.
SAMPLE_RATE_11025
,
channels
:
audio
.
AudioChannel
.
CHANNEL_2
,
sampleFormat
:
audio
.
AudioSampleFormat
.
SAMPLE_FORMAT_U8
,
encodingType
:
audio
.
AudioEncodingType
.
ENCODING_TYPE_RAW
}
var
AudioRendererInfo
=
{
content
:
audio
.
ContentType
.
CONTENT_TYPE_SPEECH
,
usage
:
audio
.
StreamUsage
.
STREAM_USAGE_VOICE_COMMUNICATION
,
rendererFlags
:
1
}
var
AudioRendererOptions
=
{
streamInfo
:
AudioStreamInfo
,
rendererInfo
:
AudioRendererInfo
}
readpath
=
'
StarWars10s-2C-11025-1SW.wav
'
await
getFdRead
(
readpath
,
done
)
var
resultFlag
=
await
playbackCB
(
AudioRendererOptions
,
readpath
);
await
sleep
(
100
);
console
.
info
(
'
AudioFrameworkRenderLog: resultFlag :
'
+
resultFlag
);
expect
(
resultFlag
).
assertTrue
();
await
closeFileDescriptor
(
readpath
);
done
();
})
/* *
* @tc.number : SUB_AUDIO_RENDERER_Play_audio_089
* @tc.name : AudioRenderer-Set7-Media - CALLBACK
* @tc.desc : AudioRenderer with parameter set 7
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_AUDIO_RENDERER_Play_audio_089
'
,
0
,
async
function
(
done
)
{
var
AudioStreamInfo
=
{
samplingRate
:
audio
.
AudioSamplingRate
.
SAMPLE_RATE_12000
,
channels
:
audio
.
AudioChannel
.
CHANNEL_2
,
sampleFormat
:
audio
.
AudioSampleFormat
.
SAMPLE_FORMAT_S16LE
,
encodingType
:
audio
.
AudioEncodingType
.
ENCODING_TYPE_RAW
}
var
AudioRendererInfo
=
{
content
:
audio
.
ContentType
.
CONTENT_TYPE_SPEECH
,
usage
:
audio
.
StreamUsage
.
STREAM_USAGE_VOICE_COMMUNICATION
,
rendererFlags
:
1
}
var
AudioRendererOptions
=
{
streamInfo
:
AudioStreamInfo
,
rendererInfo
:
AudioRendererInfo
}
readpath
=
'
StarWars10s-2C-12000-2SW.wav
'
await
getFdRead
(
readpath
,
done
)
var
resultFlag
=
await
playbackCB
(
AudioRendererOptions
,
readpath
);
await
sleep
(
100
);
console
.
info
(
'
AudioFrameworkRenderLog: resultFlag :
'
+
resultFlag
);
expect
(
resultFlag
).
assertTrue
();
await
closeFileDescriptor
(
readpath
);
done
();
})
/* *
* @tc.number : SUB_AUDIO_RENDERER_Play_audio_090
* @tc.name : AudioRenderer-Set8-Media - CALLBACK
* @tc.desc : AudioRenderer with parameter set 8
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_AUDIO_RENDERER_Play_audio_090
'
,
0
,
async
function
(
done
)
{
var
AudioStreamInfo
=
{
samplingRate
:
audio
.
AudioSamplingRate
.
SAMPLE_RATE_16000
,
channels
:
audio
.
AudioChannel
.
CHANNEL_2
,
sampleFormat
:
audio
.
AudioSampleFormat
.
SAMPLE_FORMAT_S24LE
,
encodingType
:
audio
.
AudioEncodingType
.
ENCODING_TYPE_RAW
}
var
AudioRendererInfo
=
{
content
:
audio
.
ContentType
.
CONTENT_TYPE_SPEECH
,
usage
:
audio
.
StreamUsage
.
STREAM_USAGE_VOICE_COMMUNICATION
,
rendererFlags
:
1
}
var
AudioRendererOptions
=
{
streamInfo
:
AudioStreamInfo
,
rendererInfo
:
AudioRendererInfo
}
readpath
=
'
StarWars10s-2C-16000-3SW.wav
'
await
getFdRead
(
readpath
,
done
)
var
resultFlag
=
await
playbackCB
(
AudioRendererOptions
,
readpath
);
await
sleep
(
100
);
console
.
info
(
'
AudioFrameworkRenderLog: resultFlag :
'
+
resultFlag
);
expect
(
resultFlag
).
assertTrue
();
await
closeFileDescriptor
(
readpath
);
done
();
})
/* *
* @tc.number : SUB_AUDIO_RENDERER_Play_audio_091
* @tc.name : AudioRenderer-Set9-Media - CALLBACK
* @tc.desc : AudioRenderer with parameter set 9
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_AUDIO_RENDERER_Play_audio_091
'
,
0
,
async
function
(
done
)
{
var
AudioStreamInfo
=
{
samplingRate
:
audio
.
AudioSamplingRate
.
SAMPLE_RATE_22050
,
channels
:
audio
.
AudioChannel
.
CHANNEL_2
,
sampleFormat
:
audio
.
AudioSampleFormat
.
SAMPLE_FORMAT_S16LE
,
encodingType
:
audio
.
AudioEncodingType
.
ENCODING_TYPE_RAW
}
var
AudioRendererInfo
=
{
content
:
audio
.
ContentType
.
CONTENT_TYPE_SPEECH
,
usage
:
audio
.
StreamUsage
.
STREAM_USAGE_VOICE_COMMUNICATION
,
rendererFlags
:
1
}
var
AudioRendererOptions
=
{
streamInfo
:
AudioStreamInfo
,
rendererInfo
:
AudioRendererInfo
}
readpath
=
'
StarWars10s-2C-22050-2SW.wav
'
await
getFdRead
(
readpath
,
done
)
var
resultFlag
=
await
playbackCB
(
AudioRendererOptions
,
readpath
);
await
sleep
(
100
);
console
.
info
(
'
AudioFrameworkRenderLog: resultFlag :
'
+
resultFlag
);
expect
(
resultFlag
).
assertTrue
();
await
closeFileDescriptor
(
readpath
);
done
();
})
/* *
* @tc.number : SUB_AUDIO_RENDERER_Play_audio_092
* @tc.name : AudioRenderer-Set10-Media - CALLBACK
* @tc.desc : AudioRenderer with parameter set 10
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
SUB_AUDIO_RENDERER_Play_audio_092
'
,
0
,
async
function
(
done
)
{
var
AudioStreamInfo
=
{
samplingRate
:
audio
.
AudioSamplingRate
.
SAMPLE_RATE_24000
,
channels
:
audio
.
AudioChannel
.
CHANNEL_2
,
sampleFormat
:
audio
.
AudioSampleFormat
.
SAMPLE_FORMAT_S24LE
,
encodingType
:
audio
.
AudioEncodingType
.
ENCODING_TYPE_RAW
}
var
AudioRendererInfo
=
{
content
:
audio
.
ContentType
.
CONTENT_TYPE_SPEECH
,
usage
:
audio
.
StreamUsage
.
STREAM_USAGE_VOICE_COMMUNICATION
,
rendererFlags
:
1
}
var
AudioRendererOptions
=
{
streamInfo
:
AudioStreamInfo
,
rendererInfo
:
AudioRendererInfo
}
readpath
=
'
StarWars10s-2C-24000-3SW.wav
'
await
getFdRead
(
readpath
,
done
)
var
resultFlag
=
await
playbackCB
(
AudioRendererOptions
,
readpath
);
await
sleep
(
100
);
console
.
info
(
'
AudioFrameworkRenderLog: resultFlag :
'
+
resultFlag
);
expect
(
resultFlag
).
assertTrue
();
await
closeFileDescriptor
(
readpath
);
done
();
})
/*
/*
* @tc.name:SetInterruptMode_001
* @tc.name:SetInterruptMode_001
* @tc.desc:SetInterruptMode mode 0 callback,is public share mode
* @tc.desc:SetInterruptMode mode 0 callback,is public share mode
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录