DASH Media Packaging SDK
|
Holds audio stream information. More...
#include <audio_stream_info.h>
Public Member Functions | |
AudioStreamInfo (int track_id, uint32_t time_scale, uint64_t duration, Codec codec, const std::string &codec_string, const uint8_t *codec_config, size_t codec_config_size, uint8_t sample_bits, uint8_t num_channels, uint32_t sampling_frequency, uint64_t seek_preroll_ns, uint64_t codec_delay_ns, uint32_t max_bitrate, uint32_t avg_bitrate, const std::string &language, bool is_encrypted) | |
Construct an initialized audio stream info object. | |
uint8_t | sample_bits () const |
uint8_t | sample_bytes () const |
uint8_t | num_channels () const |
uint32_t | sampling_frequency () const |
uint32_t | bytes_per_frame () const |
uint64_t | seek_preroll_ns () const |
uint64_t | codec_delay_ns () const |
uint32_t | max_bitrate () const |
uint32_t | avg_bitrate () const |
void | set_sampling_frequency (const uint32_t sampling_frequency) |
StreamInfo implementation overrides. | |
bool | IsValidConfig () const override |
std::string | ToString () const override |
Public Member Functions inherited from shaka::media::StreamInfo | |
StreamInfo (StreamType stream_type, int track_id, uint32_t time_scale, uint64_t duration, Codec codec, const std::string &codec_string, const uint8_t *codec_config, size_t codec_config_size, const std::string &language, bool is_encrypted) | |
StreamType | stream_type () const |
uint32_t | track_id () const |
uint32_t | time_scale () const |
uint64_t | duration () const |
Codec | codec () const |
const std::string & | codec_string () const |
const std::vector< uint8_t > & | codec_config () const |
const std::string & | language () const |
bool | is_encrypted () const |
void | set_duration (int duration) |
void | set_codec (Codec codec) |
void | set_codec_config (const std::vector< uint8_t > &data) |
void | set_codec_string (const std::string &codec_string) |
void | set_language (const std::string &language) |
void | set_is_encrypted (bool is_encrypted) |
Static Public Member Functions | |
static std::string | GetCodecString (Codec codec, uint8_t audio_object_type) |
Holds audio stream information.
Definition at line 18 of file audio_stream_info.h.
|
static |
audio_object_type | is only used by AAC Codec, ignored otherwise. |
Definition at line 95 of file audio_stream_info.cc.
|
overridevirtual |
Implements shaka::media::StreamInfo.
Definition at line 71 of file audio_stream_info.cc.
|
overridevirtual |
Reimplemented from shaka::media::StreamInfo.
Definition at line 78 of file audio_stream_info.cc.