summaryrefslogtreecommitdiffstats
path: root/media/audio/audio_parameters.h
diff options
context:
space:
mode:
authordalecurtis@google.com <dalecurtis@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-14 22:13:12 +0000
committerdalecurtis@google.com <dalecurtis@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-14 22:13:12 +0000
commit93f90980f27779675775113bc681021d020dd142 (patch)
tree9af517902106c656cf59c8a7e1ec3cf7fc2017df /media/audio/audio_parameters.h
parent1c61592bf5c107243d98efd5eae1e31aba943db5 (diff)
downloadchromium_src-93f90980f27779675775113bc681021d020dd142.zip
chromium_src-93f90980f27779675775113bc681021d020dd142.tar.gz
chromium_src-93f90980f27779675775113bc681021d020dd142.tar.bz2
Check sample_rate in AudioParameters == operator.
Without checking this an incorrect dispatcher will be used an audio will be played at the wrong rate. BUG=272520,272415 TEST=play 32k, 48k, 16k audio in succession, check all play at the correct rate. Signed-off-by: Dylan Reid <dgreid@chromium.org> R=dalecurtis@chromium.org Review URL: https://codereview.chromium.org/23163006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217672 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/audio_parameters.h')
-rw-r--r--media/audio/audio_parameters.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/media/audio/audio_parameters.h b/media/audio/audio_parameters.h
index 02a6f96..2817cd2 100644
--- a/media/audio/audio_parameters.h
+++ b/media/audio/audio_parameters.h
@@ -82,6 +82,7 @@ class MEDIA_EXPORT AudioParameters {
// Comparison with other AudioParams.
bool operator==(const AudioParameters& other) const {
return format_ == other.format() &&
+ sample_rate_ == other.sample_rate() &&
channel_layout_ == other.channel_layout() &&
channels_ == other.channels() &&
input_channels_ == other.input_channels() &&