提交 87e27977 编写于 作者: J jiao_yanlin

Sample code modification

Signed-off-by: Njiao_yanlin <jiaoyanlin@huawei.com>
上级 7180e65e
...@@ -283,7 +283,7 @@ createTonePlayer(options: AudioRendererInfo, callback: AsyncCallback&lt;TonePlay ...@@ -283,7 +283,7 @@ createTonePlayer(options: AudioRendererInfo, callback: AsyncCallback&lt;TonePlay
import audio from '@ohos.multimedia.audio'; import audio from '@ohos.multimedia.audio';
let audioRendererInfo = { let audioRendererInfo = {
content : audio.ContentType.CONTENT_TYPE_MUSIC, content : audio.ContentType.CONTENT_TYPE_SONIFICATION,
usage : audio.StreamUsage.STREAM_USAGE_MEDIA, usage : audio.StreamUsage.STREAM_USAGE_MEDIA,
rendererFlags : 0 rendererFlags : 0
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册