summaryrefslogtreecommitdiffstats
path: root/media/audio/audio_parameters.cc
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-16 20:44:42 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-16 20:44:42 +0000
commite11c8ee1b8d01092326de43f8b881efb03a7ba0c (patch)
tree61a2ec2d89543d66ea9b555be3d9c1496c9bbabc /media/audio/audio_parameters.cc
parente75962686027614e8b532e6e630cd84b88360486 (diff)
downloadchromium_src-e11c8ee1b8d01092326de43f8b881efb03a7ba0c.zip
chromium_src-e11c8ee1b8d01092326de43f8b881efb03a7ba0c.tar.gz
chromium_src-e11c8ee1b8d01092326de43f8b881efb03a7ba0c.tar.bz2
Replace AudioDecoderConfig with simple accessors on AudioDecoder.
AudioDecoderConfig was being used as a struct for outputting format information to an AudioRenderer. This was confusing and in contrast to VideoDecoderConfig, which is is actually used as input to configure a video decoder! Review URL: http://codereview.chromium.org/7796033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101563 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/audio_parameters.cc')
-rw-r--r--media/audio/audio_parameters.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/media/audio/audio_parameters.cc b/media/audio/audio_parameters.cc
index 029f831..45c98d9 100644
--- a/media/audio/audio_parameters.cc
+++ b/media/audio/audio_parameters.cc
@@ -15,15 +15,6 @@ AudioParameters::AudioParameters()
channels(0) {
}
-AudioParameters::AudioParameters(const media::AudioDecoderConfig& config)
- : format(AUDIO_PCM_LINEAR),
- channel_layout(config.channel_layout),
- sample_rate(config.sample_rate),
- bits_per_sample(config.bits_per_channel),
- samples_per_packet(0),
- channels(ChannelLayoutToChannelCount(config.channel_layout)) {
-}
-
AudioParameters::AudioParameters(Format format, ChannelLayout channel_layout,
int sample_rate, int bits_per_sample,
int samples_per_packet)