提交 08edd4af 编写于 作者: J jiao_yanlin

Sample code modification

Signed-off-by: Njiao_yanlin <jiaoyanlin@huawei.com>
上级 fe16d158
...@@ -333,12 +333,8 @@ async function createTonePlayerBefore(){ ...@@ -333,12 +333,8 @@ async function createTonePlayerBefore(){
streamUsage : audio.StreamUsage.STREAM_USAGE_MEDIA, streamUsage : audio.StreamUsage.STREAM_USAGE_MEDIA,
rendererFlags : 0 rendererFlags : 0
} }
createTonePlayer(); tonePlayer = await audio.createTonePlayer(audioRendererInfo);
} }
async function createTonePlayer(){
tonePlayer = await audio.createTonePlayer(audioRendererInfo);
}
``` ```
## AudioVolumeType ## AudioVolumeType
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册