mirror of
https://gitee.com/openharmony/interface_sdk_c
synced 2025-02-22 01:51:11 +00:00
Provide NDK api: OH_AVPlayer_SetAudioRendererInfo OH_AVPlayer_SetAudioInterruptMode
Signed-off-by: fanpingan <fanpingan1@huawei.com> Change-Id: If1b43c5c2d7a83d36f984a831fc0c22a246198f1
This commit is contained in:
parent
c37c9ee769
commit
62562d70c0
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user