| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROMEOS_DBUS_CRAS_AUDIO_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_CRAS_AUDIO_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_CRAS_AUDIO_CLIENT_H_ | 6 #define CHROMEOS_DBUS_CRAS_AUDIO_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 // removing an active output node added by AddActiveOutputNode. | 121 // removing an active output node added by AddActiveOutputNode. |
| 122 virtual void RemoveActiveOutputNode(uint64_t node_id) = 0; | 122 virtual void RemoveActiveOutputNode(uint64_t node_id) = 0; |
| 123 | 123 |
| 124 // Swaps the left and right channel of the primary active output device. | 124 // Swaps the left and right channel of the primary active output device. |
| 125 // Swap the left and right channel if |swap| is true; otherwise, swap the left | 125 // Swap the left and right channel if |swap| is true; otherwise, swap the left |
| 126 // and right channel back to the normal mode. | 126 // and right channel back to the normal mode. |
| 127 // The dbus message will be dropped if this feature is not supported on the | 127 // The dbus message will be dropped if this feature is not supported on the |
| 128 // |node_id|. | 128 // |node_id|. |
| 129 virtual void SwapLeftRight(uint64_t node_id, bool swap) = 0; | 129 virtual void SwapLeftRight(uint64_t node_id, bool swap) = 0; |
| 130 | 130 |
| 131 virtual void SetGlobalOutputChannelRemix( |
| 132 int32_t channels, const std::vector<double>& mixer) = 0; |
| 133 |
| 131 // Runs the callback as soon as the service becomes available. | 134 // Runs the callback as soon as the service becomes available. |
| 132 virtual void WaitForServiceToBeAvailable( | 135 virtual void WaitForServiceToBeAvailable( |
| 133 const WaitForServiceToBeAvailableCallback& callback) = 0; | 136 const WaitForServiceToBeAvailableCallback& callback) = 0; |
| 134 | 137 |
| 135 // Creates the instance. | 138 // Creates the instance. |
| 136 static CrasAudioClient* Create(); | 139 static CrasAudioClient* Create(); |
| 137 | 140 |
| 138 protected: | 141 protected: |
| 139 // Create() should be used instead. | 142 // Create() should be used instead. |
| 140 CrasAudioClient(); | 143 CrasAudioClient(); |
| 141 | 144 |
| 142 private: | 145 private: |
| 143 DISALLOW_COPY_AND_ASSIGN(CrasAudioClient); | 146 DISALLOW_COPY_AND_ASSIGN(CrasAudioClient); |
| 144 }; | 147 }; |
| 145 | 148 |
| 146 } // namespace chromeos | 149 } // namespace chromeos |
| 147 | 150 |
| 148 #endif // CHROMEOS_DBUS_CRAS_AUDIO_CLIENT_H_ | 151 #endif // CHROMEOS_DBUS_CRAS_AUDIO_CLIENT_H_ |
| OLD | NEW |