IAudioFrameProcessor class

Inheritance
  • Object
  • NativeClass
  • NativeObserverClass
  • IAudioFrameProcessor
Implementers

Constructors

IAudioFrameProcessor([NativeClassOptions? options])

Properties

$instance ↔ dynamic
getter/setter pairinherited
$resource → NativeResource
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
ready Future<void>
Whether the instance is initialized
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

destroy() → void
inherited
emit(String name, List args) → dynamic
inherited
nativeCall<T>(String method, [List? args, NativeMethodMeta? meta]) Future<T>
Call instance method
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onProcessEarMonitorAudioFrame(IAudioFrame audioFrame) FutureOr<int>
@valid since 3.50 @detail callback @author songxiaomeng.19 @brief 软件耳返音频数据的回调。你可根据此回调自定义处理音频。
软件耳返音频中包含通过调用 setVoiceReverbTypesetVoiceChangerType 设置的音频特效。 @param audioFrame 音频帧地址。参看 IAudioFrame{@link #IAudioFrame}。 @return - 0: 成功。 - < 0: 失败。 @note - 此数据处理只影响软件耳返音频数据。 - 要启用此回调,必须调用 enableAudioProcessor{@link #RTCEngine#enableAudioProcessor},并选择软件耳返音频,每 10 ms 收到此回调。
onProcessPlayBackAudioFrame(IAudioFrame audioFrame) FutureOr<int>
@detail callback @author majun.lvhiei @brief 回调远端音频混音的音频帧地址,供自定义音频处理。 @param audioFrame 音频帧地址,参看 IAudioFrame{@link #IAudioFrame} @note 调用 enableAudioProcessor{@link #RTCEngine#enableAudioProcessor},并在参数中选择远端音频流的的混音音频时,每 10 ms 收到此回调。
onProcessRecordAudioFrame(IAudioFrame audioFrame) FutureOr<int>
@detail callback @author majun.lvhiei @brief 回调本地采集的音频帧地址,供自定义音频处理。 @param audioFrame 音频帧地址,参看 IAudioFrame{@link #IAudioFrame}。 @return - 0: 成功。 - < 0: 失败。 @note - 完成自定义音频处理后,SDK 会对处理后的音频帧进行编码,并传输到远端。此音频处理不会影响软件耳返音频数据。 - 要启用此回调,必须调用 enableAudioProcessor{@link #RTCEngine#enableAudioProcessor},并在参数中选择本地采集的音频,每 10 ms 收到此回调。
onProcessRemoteUserAudioFrame(String streamId, StreamInfo streamInfo, IAudioFrame audioFrame) FutureOr<int>
@detail callback @author majun.lvhiei @brief 回调单个远端用户的音频帧地址,供自定义音频处理。 @param streamId 远端流 ID。 @param streamInfo 远端流信息, 参看 StreamInfo{@link #StreamInfo}。 @param audioFrame 音频帧地址,参看 IAudioFrame{@link #IAudioFrame}。 @note 调用 enableAudioProcessor{@link #RTCEngine#enableAudioProcessor},并在参数中选择各个远端音频流时,每 10 ms 收到此回调。
onProcessScreenAudioFrame(IAudioFrame audioFrame) FutureOr<int>
@detail callback @author zhangcaining @brief 屏幕共享的音频帧地址回调。你可根据此回调自定义处理音频。 @param audioFrame 音频帧地址,参看 IAudioFrame{@link #IAudioFrame}。 @note 调用 enableAudioProcessor{@link #RTCEngine#enableAudioProcessor},把返回给音频处理器的音频类型设置为屏幕共享音频后,每 10 ms 收到此回调。
registerEvent(String name, dynamic method) → void
inherited
sendInstanceGet<T>(String property) Future<T>
Get instance property
inherited
sendInstancePropertiesGet(dynamic nativeClass) Future<Map<String, dynamic>>
Get instance properties
inherited
sendInstanceSet(String property, dynamic value) Future<void>
Set instance property
inherited
toString() String
A string representation of this object.
inherited
updateInstance(dynamic instance) → void
inherited
updateResource(NativeResource resource) → void
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

codegen_$namespace → dynamic
no setter