NERtc Windows SDK
Public Attributes | List of all members
nertc::NERtcCreateAudioEffectOption Struct Reference

#include <nertc_engine_defines.h>

Public Attributes

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

Detailed Description

创建音效的配置项

Member Data Documentation

int nertc::NERtcCreateAudioEffectOption::loop_count

音效循环播放的次数:

  • 1:(默认)播放音效一次。
  • ≤ 0:无限循环播放音效,直至调用 stopEffect 或 stopAllEffects 后停止。
char nertc::NERtcCreateAudioEffectOption::path[kNERtcMaxURILength]

待播放的音乐文件的绝对路径或 URL 地址。

bool nertc::NERtcCreateAudioEffectOption::playback_enabled

是否可播放。默认为 true,即可在本地播放该音效。

uint32_t nertc::NERtcCreateAudioEffectOption::playback_volume

音乐文件的播放音量,取值范围为 0~100。默认为 100,表示使用文件的原始音量。

bool nertc::NERtcCreateAudioEffectOption::send_enabled

是否将伴音发送远端,默认为 true,即远端用户订阅本端音频流后可听到该伴音。

uint32_t nertc::NERtcCreateAudioEffectOption::send_volume

音乐文件的发送音量,取值范围为 0~100。默认为 100,表示使用文件的原始音量。


The documentation for this struct was generated from the following file: