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 "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
10 #include "chromeos/chromeos_export.h" | 10 #include "chromeos/chromeos_export.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 // Adds input node |node_id| to the active outputs list. This is used to add | 108 // Adds input node |node_id| to the active outputs list. This is used to add |
109 // an additional active output node besides the one set by SetActiveInputNode. | 109 // an additional active output node besides the one set by SetActiveInputNode. |
110 // Note that this action will not trigger an ActiveOutputNodeChanged event | 110 // Note that this action will not trigger an ActiveOutputNodeChanged event |
111 // and nothing will happen if the |node_id| has already been set as active. | 111 // and nothing will happen if the |node_id| has already been set as active. |
112 virtual void AddActiveOutputNode(uint64 node_id) = 0; | 112 virtual void AddActiveOutputNode(uint64 node_id) = 0; |
113 | 113 |
114 // Removes output node |node_id| from the active output list. This is used for | 114 // Removes output node |node_id| from the active output list. This is used for |
115 // removing an active output node added by AddActiveOutputNode. | 115 // removing an active output node added by AddActiveOutputNode. |
116 virtual void RemoveActiveOutputNode(uint64 node_id) = 0; | 116 virtual void RemoveActiveOutputNode(uint64 node_id) = 0; |
117 | 117 |
| 118 // Swaps the left and right channel of the primary active output device. |
| 119 // Swap the left and right channel if |swap| is true; otherwise, swap the left |
| 120 // and right channel back to the normal mode. |
| 121 // The dbus message will be dropped if this feature is not supported on the |
| 122 // |node_id|. |
| 123 virtual void SwapLeftRight(uint64 node_id, bool swap) = 0; |
| 124 |
118 // Creates the instance. | 125 // Creates the instance. |
119 static CrasAudioClient* Create(); | 126 static CrasAudioClient* Create(); |
120 | 127 |
121 protected: | 128 protected: |
122 // Create() should be used instead. | 129 // Create() should be used instead. |
123 CrasAudioClient(); | 130 CrasAudioClient(); |
124 | 131 |
125 private: | 132 private: |
126 DISALLOW_COPY_AND_ASSIGN(CrasAudioClient); | 133 DISALLOW_COPY_AND_ASSIGN(CrasAudioClient); |
127 }; | 134 }; |
128 | 135 |
129 } // namespace chromeos | 136 } // namespace chromeos |
130 | 137 |
131 #endif // CHROMEOS_DBUS_CRAS_AUDIO_CLIENT_H_ | 138 #endif // CHROMEOS_DBUS_CRAS_AUDIO_CLIENT_H_ |
OLD | NEW |