AudioFrameInputNode.AudioFrameCompleted 事件

定义

通知已完成的音频帧,该音频帧已提交到图形,并调用 AddFrame

// Register
event_token AudioFrameCompleted(TypedEventHandler<AudioFrameInputNode, AudioFrameCompletedEventArgs const&> const& handler) const;

// Revoke with event_token
void AudioFrameCompleted(event_token const* cookie) const;

// Revoke with event_revoker
AudioFrameInputNode::AudioFrameCompleted_revoker AudioFrameCompleted(auto_revoke_t, TypedEventHandler<AudioFrameInputNode, AudioFrameCompletedEventArgs const&> const& handler) const;
public event TypedEventHandler<AudioFrameInputNode,AudioFrameCompletedEventArgs> AudioFrameCompleted;
function onAudioFrameCompleted(eventArgs) { /* Your code */ }
audioFrameInputNode.addEventListener("audioframecompleted", onAudioFrameCompleted);
audioFrameInputNode.removeEventListener("audioframecompleted", onAudioFrameCompleted);
- or -
audioFrameInputNode.onaudioframecompleted = onAudioFrameCompleted;
Public Custom Event AudioFrameCompleted As TypedEventHandler(Of AudioFrameInputNode, AudioFrameCompletedEventArgs) 

事件类型

适用于