audio_source
SDK Beta
This interface is a part of the Beta program.
Module: Media Injector API
The interface for providing audio frames.
This interface must be implemented by the injector, it shall serve as the source of audio frames passed to the rtc_audio_source.
#include <media_engine.h>
Inherited by dolbyio::comms::plugin::injector
Public Functions
Name | |
---|---|
virtual void | register_audio_frame_rtc_source(rtc_audio_source * source) =0 Connects the RTC Audio Source to the audio source, in essence creating the audio injection pipeline. This method will be called by the media_engine when an Audio Track is attached to the active Peer Connection. |
virtual void | deregister_audio_frame_rtc_source() =0 Disconnects the RTC Audio Source from the Audio Source, in essence destructing the audio pipeline. This method is called by the media_engine whenever an Audio Track is to be detached from the active Peer Connection. |
class dolbyio::comms::audio_source;
Public Functions Documentation
function register_audio_frame_rtc_source
virtual void register_audio_frame_rtc_source(
rtc_audio_source * source
) =0
Connects the RTC Audio Source to the audio source, in essence creating the audio injection pipeline. This method will be called by the media_engine when an Audio Track is attached to the active Peer Connection.
Parameters:
- source The RTC Audio Source which will receive the injected audio frames.
function deregister_audio_frame_rtc_source
virtual void deregister_audio_frame_rtc_source() =0
Disconnects the RTC Audio Source from the Audio Source, in essence destructing the audio pipeline. This method is called by the media_engine whenever an Audio Track is to be detached from the active Peer Connection.
Updated 3 months ago