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

Unified Diff: media/audio/audio_parameters.h

Issue 285233005: add audio-buffer-size command line flag support to the input audio for all the platforms (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 6 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_manager_base.cc ('k') | media/audio/cras/audio_manager_cras.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_parameters.h
diff --git a/media/audio/audio_parameters.h b/media/audio/audio_parameters.h
index b23d26fdcae0e9ff57f310a826348cfea2a11a39..cbcb93240d90d4318a528f95e8c9bf2f5f7f6a1c 100644
--- a/media/audio/audio_parameters.h
+++ b/media/audio/audio_parameters.h
@@ -108,6 +108,16 @@ class MEDIA_EXPORT AudioParameters {
frames_per_buffer_ == other.frames_per_buffer() &&
effects_ == other.effects();
}
+ 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() ||
+ bits_per_sample_ != other.bits_per_sample() ||
+ frames_per_buffer_ != other.frames_per_buffer() ||
+ effects_ != other.effects();
+ }
private:
// These members are mutable to support entire struct assignment. They should
« no previous file with comments | « media/audio/audio_manager_base.cc ('k') | media/audio/cras/audio_manager_cras.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698