OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROMEOS_AUDIO_AUDIO_A11Y_CONTROLLER_H_ |
| 6 #define CHROMEOS_AUDIO_AUDIO_A11Y_CONTROLLER_H_ |
| 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "chromeos/chromeos_export.h" |
| 12 |
| 13 namespace chromeos { |
| 14 |
| 15 class CHROMEOS_EXPORT AudioA11yController { |
| 16 public: |
| 17 AudioA11yController(); |
| 18 ~AudioA11yController(); |
| 19 |
| 20 // Set audio outputs mono or not (that is stereo). |
| 21 void SetOutputMono(bool enabled); |
| 22 |
| 23 // Returns true if audio output is mono, otherwise false. |
| 24 bool IsOutputMonoEnabled() const; |
| 25 |
| 26 private: |
| 27 // Audio output channel counts. |
| 28 int32_t channels_ = 2; |
| 29 |
| 30 // Indicates if the mono audio output is enabled or disabled. |
| 31 bool output_mono_enabled_ = false; |
| 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(AudioA11yController); |
| 34 }; |
| 35 |
| 36 } // namespace chromeos |
| 37 |
| 38 #endif // CHROMEOS_AUDIO_AUDIO_A11Y_CONTROLLER_H_ |
OLD | NEW |