#include "media/base/audio_decoder_config.h"
#include "base/logging.h"
#include "media/base/limits.h"
#include "media/base/media_util.h"
namespace media {
AudioDecoderConfig::AudioDecoderConfig() { … }
AudioDecoderConfig::AudioDecoderConfig(AudioCodec codec,
SampleFormat sample_format,
ChannelLayout channel_layout,
int samples_per_second,
const std::vector<uint8_t>& extra_data,
EncryptionScheme encryption_scheme) { … }
AudioDecoderConfig::AudioDecoderConfig(const AudioDecoderConfig& other) =
default;
void AudioDecoderConfig::Initialize(AudioCodec codec,
SampleFormat sample_format,
ChannelLayout channel_layout,
int samples_per_second,
const std::vector<uint8_t>& extra_data,
EncryptionScheme encryption_scheme,
base::TimeDelta seek_preroll,
int codec_delay) { … }
AudioDecoderConfig::~AudioDecoderConfig() = default;
bool AudioDecoderConfig::IsValidConfig() const { … }
bool AudioDecoderConfig::Matches(const AudioDecoderConfig& config) const { … }
std::string AudioDecoderConfig::AsHumanReadableString() const { … }
void AudioDecoderConfig::SetChannelsForDiscrete(int channels) { … }
void AudioDecoderConfig::SetIsEncrypted(bool is_encrypted) { … }
}