audio_frame

🚀

SDK Beta

This interface is a part of the Beta program.

Module: Media Injector API

The interface that wraps decoded audio frames to be injected into WebRTC.

#include <media_engine.h>

Public Functions

Name
virtual~audio_frame() =default
Default destructor.
virtual intsamples() const =0
virtual intsample_rate() const =0
Gets the sample rate of the audio frame.
virtual const int16_t *data() const =0
Gets the underlying s16 raw PCM audio data.
virtual intchannels() const =0
class dolbyio::comms::audio_frame;

Public Functions Documentation

function ~audio_frame

virtual ~audio_frame() =default

Default destructor.

function samples

virtual int samples() const =0

function sample_rate

virtual int sample_rate() const =0

Gets the sample rate of the audio frame.

Return: Sample rate.

function data

virtual const int16_t * data() const =0

Gets the underlying s16 raw PCM audio data.

Return: Pointer to data.

function channels

virtual int channels() const =0


Did this page help you?