Provide NDK api: OH_AVPlayer_SetAudioRendererInfo OH_AVPlayer_SetAudioInterruptMode

Signed-off-by: fanpingan <fanpingan1@huawei.com>
Change-Id: If1b43c5c2d7a83d36f984a831fc0c22a246198f1
This commit is contained in:
fanpingan 2024-05-28 11:22:00 +08:00
parent c37c9ee769
commit 62562d70c0
No known key found for this signature in database
GPG Key ID: CD730273547A98B2

View File

@ -326,33 +326,33 @@ OH_AVErrCode OH_AVPlayer_GetPlaybackSpeed(OH_AVPlayer *player, AVPlaybackSpeed *
* {@link AV_ERR_OK} if the execution is successful.
* {@link AV_ERR_INVALID_VAL} if input player is nullptr or streamUsage value is invalid.
* @since 12
* @version 1.0
* @version 1.0
*/
OH_AVErrCode OH_AVPlayer_SetAudioRendererInfo(OH_AVPlayer *player, OH_AudioStream_Usage streamUsage);
/**
* @brief Set the interruption mode of the player's audio stream
* @param player Pointer to an OH_AVPlayer instance
* @param interruptMode The value {@link OH_AudioInterrupt_Mode} used for the interruption mode of
* @param interruptMode The value {@link OH_AudioInterrupt_Mode} used for the interruption mode of
* the player audio stream.
* @return Function result code.
* {@link AV_ERR_OK} if the execution is successful.
* {@link AV_ERR_INVALID_VAL} if input player is nullptr or interruptMode value is invalid.
* @since 12
* @version 1.0
* @version 1.0
*/
OH_AVErrCode OH_AVPlayer_SetAudioInterruptMode(OH_AVPlayer *player, OH_AudioInterrupt_Mode interruptMode);
/**
* @brief Set the effect mode of the player's audio stream
* @param player Pointer to an OH_AVPlayer instance
* @param effectMode The value {@link OH_AudioStream_AudioEffectMode} used for the effect mode of
* @param effectMode The value {@link OH_AudioStream_AudioEffectMode} used for the effect mode of
* the player audio stream.
* @return Function result code.
* {@link AV_ERR_OK} if the execution is successful.
* {@link AV_ERR_INVALID_VAL} if input player is nullptr or effectMode value is invalid.
* @since 12
* @version 1.0
* @version 1.0
*/
OH_AVErrCode OH_AVPlayer_SetAudioEffectMode(OH_AVPlayer *player, OH_AudioStream_AudioEffectMode effectMode);