PrivMX Endpoint v2.8.0
Loading...
Searching...
No Matches
privmx::endpoint::stream::AudioData Struct Reference

#include <stream/webrtc/include_pub/privmx/endpoint/stream/webrtc/OnTrackInterface.hpp>

Inheritance diagram for privmx::endpoint::stream::AudioData:
Collaboration diagram for privmx::endpoint::stream::AudioData:

Public Member Functions

 AudioData (const std::vector< std::string > &_streamIds, const std::string &_track, const void *_audio_data, int _bits_per_sample, int _sample_rate, size_t _number_of_channels, size_t _number_of_frames)
Public Member Functions inherited from privmx::endpoint::stream::Data
 Data (DataType _type, const std::vector< std::string > &_streamIds, const std::string &_track)
virtual ~Data ()=default

Public Attributes

const void * audio_data
int bits_per_sample
int sample_rate
size_t number_of_channels
size_t number_of_frames
Public Attributes inherited from privmx::endpoint::stream::Data
DataType type
const std::vector< std::string > streamIds
const std::string track

Detailed Description

Holds a portion of audio delivered by a remote track.

Constructor & Destructor Documentation

◆ AudioData()

privmx::endpoint::stream::AudioData::AudioData ( const std::vector< std::string > & _streamIds,
const std::string & _track,
const void * _audio_data,
int _bits_per_sample,
int _sample_rate,
size_t _number_of_channels,
size_t _number_of_frames )
inline

//doc-gen:ignore

Member Data Documentation

◆ audio_data

const void* privmx::endpoint::stream::AudioData::audio_data

raw samples, which the sender owns. They live as long as the OnData call, so copy them to keep them.

◆ bits_per_sample

int privmx::endpoint::stream::AudioData::bits_per_sample

number of bits which every sample takes

◆ number_of_channels

size_t privmx::endpoint::stream::AudioData::number_of_channels

number of channels which the samples interleave

◆ number_of_frames

size_t privmx::endpoint::stream::AudioData::number_of_frames

number of frames in this portion, where one frame holds one sample for every channel

◆ sample_rate

int privmx::endpoint::stream::AudioData::sample_rate

number of samples per second


The documentation for this struct was generated from the following file: