getEffectPitch abstract method

Future<int> getEffectPitch(
  1. int effectId
)

获取指定音效文件的音调。

使用前提

请先调用 playEffect 接口播放音效文件。

调用时机

请在引擎初始化之后调用此接口,且该方法仅可在加入房间后调用。

参数说明

effectId 指定音效的 ID。每个音效均有唯一的 ID

返回值

  • 0(OK):方法调用成功。
  • 其他:方法调用失败。
    • 30005(invalidState):当前状态不支持的操作,比如找不到对应的音效任务或引擎尚未初始化。

Implementation

Future<int> getEffectPitch(int effectId);