From 2e520b2c605fd6aef3faf118e536df7784ffb5a7 Mon Sep 17 00:00:00 2001 From: Xiangyu Li Date: Tue, 13 Jun 2023 19:28:45 +0800 Subject: [PATCH] update getAudioEffectInfoArray Signed-off-by: Xiangyu Li --- zh-cn/application-dev/reference/apis/js-apis-audio.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-audio.md b/zh-cn/application-dev/reference/apis/js-apis-audio.md index c5e0df5f59..90bfe33a9a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-audio.md +++ b/zh-cn/application-dev/reference/apis/js-apis-audio.md @@ -3429,9 +3429,9 @@ getAudioEffectInfoArray(content: ContentType, usage: StreamUsage): Promise<Au **示例:** ```js -audioStreamManager.getAudioEffectInfoArray().then((audioEffectInfoArray) => { +audioStreamManager.getAudioEffectInfoArray(audio.ContentType.CONTENT_TYPE_MUSIC, audio.StreamUsage.STREAM_USAGE_MEDIA).then((audioEffectInfoArray) => { console.info(`getAudioEffectInfoArray ######### Get Promise is called ##########`); - console.info(`The contentType of ${CONTENT_TYPE_MUSIC} and the streamUsage of ${STREAM_USAGE_MEDIA} 's effect modes are: ${audioEffectInfoArray}`); + console.info(`The effect modes are: ${audioEffectInfoArray}`); }).catch((err) => { console.error(`getAudioEffectInfoArray :ERROR: ${err}`); }); -- GitLab