diff --git a/entry/src/main/cpp/sample/player/Player.cpp b/entry/src/main/cpp/sample/player/Player.cpp index 535c661eec2795ef6ee18a9d4a29e2cfdc15733f..a6ae98fc5df9599b97e04864e8385365d974242f 100644 --- a/entry/src/main/cpp/sample/player/Player.cpp +++ b/entry/src/main/cpp/sample/player/Player.cpp @@ -48,7 +48,7 @@ int32_t Player::CreateAudioDecoder() { // Sets the encoding type of the audio stream OH_AudioStreamBuilder_SetEncodingType(builder_, AUDIOSTREAM_ENCODING_TYPE_RAW); // Set the working scenario for the output audio stream - OH_AudioStreamBuilder_SetRendererInfo(builder_, AUDIOSTREAM_USAGE_MUSIC); + OH_AudioStreamBuilder_SetRendererInfo(builder_, AUDIOSTREAM_USAGE_MOVIE); AVCODEC_SAMPLE_LOGW("Init audioSampleRate: %{public}d, ChannelCount: %{public}d", sampleInfo_.audioSampleRate, sampleInfo_.audioChannelCount); OH_AudioRenderer_Callbacks callbacks;