audio_sink
Module: Media Recorder API
The interface for receiving audio frames.
#include <media_engine.h>
Public Functions
Name | |
---|---|
virtual void | handle_audio(const std::string & stream_id, const std::string & track_id, const int16_t * data, size_t n_data, int sample_rate, size_t channels) =0 The callback that is invoked when an audio frame is decoded and ready to be processed. |
class dolbyio::comms::audio_sink;
Public Functions Documentation
function handle_audio
virtual void handle_audio(
const std::string & stream_id,
const std::string & track_id,
const int16_t * data,
size_t n_data,
int sample_rate,
size_t channels
) =0
The callback that is invoked when an audio frame is decoded and ready to be processed.
Parameters:
- stream_id The media stream ID to which the audio track belongs.
- track_id The ID of the audio track.
- data The pointer to the underlying PCM data.
- n_data The size of data.
- sample_rate The sample rate
- channels The number of channels.
Updated 3 months ago
Did this page help you?