Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(442)

Unified Diff: media/audio/audio_parameters.cc

Issue 593653003: Refactoring AudioParameters |operator==| to |Equals()| method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved implementation to .cc Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/audio/audio_parameters.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_parameters.cc
diff --git a/media/audio/audio_parameters.cc b/media/audio/audio_parameters.cc
index 7532f34077efe659e32b05b71a806ffeca61ae9e..3265450f2329c26eb127422f3761ec1c9919a6d8 100644
--- a/media/audio/audio_parameters.cc
+++ b/media/audio/audio_parameters.cc
@@ -105,4 +105,14 @@ base::TimeDelta AudioParameters::GetBufferDuration() const {
static_cast<float>(sample_rate_));
}
+bool AudioParameters::Equals(const AudioParameters& other) const {
+ return format_ == other.format() &&
+ sample_rate_ == other.sample_rate() &&
+ channel_layout_ == other.channel_layout() &&
+ channels_ == other.channels() &&
+ bits_per_sample_ == other.bits_per_sample() &&
+ frames_per_buffer_ == other.frames_per_buffer() &&
+ effects_ == other.effects();
+}
+
} // namespace media
« no previous file with comments | « media/audio/audio_parameters.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698