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 #include "chromeos/audio/audio_a11y_controller.h" |
| 6 |
| 7 namespace chromeos { |
| 8 |
| 9 AudioA11yController::AudioA11yController() : cras_audio_handler_(nullptr) { |
| 10 cras_audio_handler_ = CrasAudioHandler::Get(); |
| 11 } |
| 12 |
| 13 AudioA11yController::~AudioA11yController() { |
| 14 } |
| 15 |
| 16 void AudioA11yController::SetOutputMono(bool enabled) { |
| 17 if (cras_audio_handler_->IsOutputMonoEnabled() == enabled) |
| 18 return; |
| 19 |
| 20 cras_audio_handler_->SetOutputMono(enabled); |
| 21 } |
| 22 |
| 23 } // namespace chromeos |
| 24 |
| 25 |
| 26 |
| 27 |
OLD | NEW |