NERtc Windows SDK  V4.4.301
Public 属性 | 所有成员列表
nertc::NERtcCreateAudioMixingOption结构体 参考

#include <nertc_engine_defines.h>

Public 属性

char path [kNERtcMaxURILength]
 
int loop_count
 
bool send_enabled
 
uint32_t send_volume
 
bool playback_enabled
 
uint32_t playback_volume
 

详细描述

Configuration items for audio mixing.

类成员变量说明

◆ loop_count

int nertc::NERtcCreateAudioMixingOption::loop_count

The number of loops for mixing audio playback: -1: (Default) plays the audio effect for one time. -≤ 0: plays in an infinite loop, until stops by calling pauseAudioMixing or stopAudioMixing.

◆ path

char nertc::NERtcCreateAudioMixingOption::path[kNERtcMaxURILength]

The path of the audio file. The local absolute paths or URL addresses are supported.

  • The path must include the file name and extension, such as "D:\\audio_files\\test.mp3".
  • Supported audio formats: MP3, M4A, AAC, 3GP, WMA, and WAV.

◆ playback_enabled

bool nertc::NERtcCreateAudioMixingOption::playback_enabled

Specifies whether to play back the mixing audio on the local client. The default value is true. The local users can hear the mixing audio.

◆ playback_volume

uint32_t nertc::NERtcCreateAudioMixingOption::playback_volume

Indicates the playback volume of a music file. Valid values: 0 to 100. The default value is 100, which indicates that the original volume of the file is used.

注解
If you modify the volume setting during a call, this setting will be used by default when you call the method again during the current call.

◆ send_enabled

bool nertc::NERtcCreateAudioMixingOption::send_enabled

Specifies whether to send the mixing audio to the remote client. The default value is true. The remote user can hear the mixing audio after the remote user subscribes to the local audio stream.

◆ send_volume

uint32_t nertc::NERtcCreateAudioMixingOption::send_volume

Indicates the publishing volume of a music file. Valid values: 0 to 100. The default value is 100, which indicates that the original volume of the file is used.

注解
If you modify the volume setting during a call, this setting will be used by default when you call the method again during the current call.

该结构体的文档由以下文件生成: