summaryrefslogtreecommitdiffstats
path: root/content/renderer/media
diff options
context:
space:
mode:
authorvrk@google.com <vrk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-03 17:01:20 +0000
committervrk@google.com <vrk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-03 17:01:20 +0000
commitd9d4641784ae2725d8fa7fee3d7182b9efdfe2d8 (patch)
tree73338745402367df2e94a9d9d666afee651555d3 /content/renderer/media
parent8bb64419a795e2aa8d0ff088397813cfafcc5482 (diff)
downloadchromium_src-d9d4641784ae2725d8fa7fee3d7182b9efdfe2d8.zip
chromium_src-d9d4641784ae2725d8fa7fee3d7182b9efdfe2d8.tar.gz
chromium_src-d9d4641784ae2725d8fa7fee3d7182b9efdfe2d8.tar.bz2
Un-hardcode 16 bits per sample in AudioDevice
r130218 fixed the problem making it necessary to hardcode 16 bits per sample in AudioDevice, but forgot to remove the hardcoded value put in place by r129124! BUG=120168 TEST=8-bit audio streams still play correctly TBR=tommi,xians Review URL: https://chromiumcodereview.appspot.com/9963111 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130396 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/media')
-rw-r--r--content/renderer/media/audio_device.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/content/renderer/media/audio_device.cc b/content/renderer/media/audio_device.cc
index 0b82873..7a07ab5 100644
--- a/content/renderer/media/audio_device.cc
+++ b/content/renderer/media/audio_device.cc
@@ -69,12 +69,9 @@ void AudioDevice::Initialize(const media::AudioParameters& params,
CHECK(!callback_); // Calling Initialize() twice?
audio_parameters_ = params;
- // TODO(xians): We have to hard code the sample format to 16 since the
- // current audio path does not support sample formats rather than 16bits per
- // channel. Remove it if the problem is fixed.
audio_parameters_.Reset(
params.format(),
- params.channel_layout(), params.sample_rate(), 16,
+ params.channel_layout(), params.sample_rate(), params.bits_per_sample(),
params.frames_per_buffer());
callback_ = callback;
}