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

Unified Diff: chromeos/audio/cras_audio_handler.h

Issue 1845733002: cras_audio_handler add SetOutputMono method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: channels_ -> output_channels_ Created 4 years, 9 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 | « no previous file | chromeos/audio/cras_audio_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/audio/cras_audio_handler.h
diff --git a/chromeos/audio/cras_audio_handler.h b/chromeos/audio/cras_audio_handler.h
index 4d98b60b192c544936ad08fa300c0c10f8576e6e..57bf47de4fe13cc6def9e3815183e469b9e084cf 100644
--- a/chromeos/audio/cras_audio_handler.h
+++ b/chromeos/audio/cras_audio_handler.h
@@ -66,6 +66,9 @@ class CHROMEOS_EXPORT CrasAudioHandler : public CrasAudioClient::Observer,
// Called when active audio input node changed.
virtual void OnActiveInputNodeChanged();
+ // Called when output channel remixing changed.
+ virtual void OnOuputChannelRemixingChanged(bool mono_on);
+
protected:
AudioObserver();
virtual ~AudioObserver();
@@ -206,6 +209,12 @@ class CHROMEOS_EXPORT CrasAudioHandler : public CrasAudioClient::Observer,
// If the feature is not supported on the device, nothing happens.
virtual void SwapInternalSpeakerLeftRightChannel(bool swap);
+ // Accessibility audio setting: sets the output mono or not.
+ virtual void SetOutputMono(bool mono_on);
+
+ // Returns true if output mono is enabled.
+ virtual bool IsOutputMonoEnabled() const;
+
// Enables error logging.
virtual void LogErrors();
@@ -408,6 +417,10 @@ class CHROMEOS_EXPORT CrasAudioHandler : public CrasAudioClient::Observer,
bool output_mute_locked_;
+ // Audio output channel counts.
+ int32_t output_channels_;
+ bool output_mono_on_;
+
// Failures are not logged at startup, since CRAS may not be running yet.
bool log_errors_;
« no previous file with comments | « no previous file | chromeos/audio/cras_audio_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698