未验证 提交 4fbaf183 编写于 作者: O openharmony_ci 提交者: Gitee

!9011 低时延接口适配

Merge pull request !9011 from zhanhang/master
......@@ -590,8 +590,7 @@ static napi_value AudioRenderGetRendererInfo(napi_env env, napi_callback_info in
OH_AudioRenderer *audioRenderer;
OH_AudioStreamBuilder_GenerateRenderer(builder, &audioRenderer);
OH_AudioStream_Usage usage;
OH_AudioStream_Content content;
OH_AudioStream_Result result = OH_AudioRenderer_GetRendererInfo(audioRenderer, &usage, &content);
OH_AudioStream_Result result = OH_AudioRenderer_GetRendererInfo(audioRenderer, &usage);
OH_AudioStreamBuilder_Destroy(builder);
napi_value res;
napi_create_int32(env, result, &res);
......@@ -675,9 +674,8 @@ static napi_value AudioStreamBuilderSetRendererInfo(napi_env env, napi_callback_
OH_AudioStreamBuilder* builder;
OH_AudioStream_Type type = AUDIOSTREAM_TYPE_RENDERER;
OH_AudioStreamBuilder_Create(&builder, type);
OH_AudioStream_Usage usage = AUDIOSTREAM_USAGE_MEDIA;
OH_AudioStream_Content content = AUDIOSTREAM_CONTENT_TYPE_MOVIE;
OH_AudioStream_Result result = OH_AudioStreamBuilder_SetRendererInfo(builder, usage, content);
OH_AudioStream_Usage usage = AUDIOSTREAM_USAGE_MUSIC;
OH_AudioStream_Result result = OH_AudioStreamBuilder_SetRendererInfo(builder, usage);
OH_AudioStreamBuilder_Destroy(builder);
napi_value res;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册