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

#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 effects.

类成员变量说明

◆ loop_count

int nertc::NERtcCreateAudioEffectOption::loop_count

The number of loops the audio effect is played: -1: (Default) plays the audio effect for one time. -≤ 0: Play sound effects in an infinite loop until you stop the playback by calling stopEffect or stopAllEffects.

◆ path

char nertc::NERtcCreateAudioEffectOption::path[kNERtcMaxURILength]

The path of the audio effect 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::NERtcCreateAudioEffectOption::playback_enabled

Specifies whether to play back. The default value is true. You can play back the local audio file.

◆ playback_volume

uint32_t nertc::NERtcCreateAudioEffectOption::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::NERtcCreateAudioEffectOption::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::NERtcCreateAudioEffectOption::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.

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