DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Static Public Member Functions | List of all members
shaka::media::AudioStreamInfo Class Reference

Holds audio stream information. More...

#include <audio_stream_info.h>

Inheritance diagram for shaka::media::AudioStreamInfo:
shaka::media::StreamInfo

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
 
const EncryptionConfigencryption_config () 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)
 
void set_encryption_config (const EncryptionConfig &encryption_config)
 

Static Public Member Functions

static std::string GetCodecString (Codec codec, uint8_t audio_object_type)
 

Detailed Description

Holds audio stream information.

Definition at line 18 of file audio_stream_info.h.

Member Function Documentation

std::string shaka::media::AudioStreamInfo::GetCodecString ( Codec  codec,
uint8_t  audio_object_type 
)
static
Parameters
audio_object_typeis only used by AAC Codec, ignored otherwise.
Returns
The codec string.

Definition at line 95 of file audio_stream_info.cc.

bool shaka::media::AudioStreamInfo::IsValidConfig ( ) const
overridevirtual
Returns
true if this object has appropriate configuration values, false otherwise.

Implements shaka::media::StreamInfo.

Definition at line 71 of file audio_stream_info.cc.

std::string shaka::media::AudioStreamInfo::ToString ( ) const
overridevirtual
Returns
A human-readable string describing the stream info.

Reimplemented from shaka::media::StreamInfo.

Definition at line 78 of file audio_stream_info.cc.


The documentation for this class was generated from the following files: