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 the primary active output device. | |
cychiang
2014/10/01 02:36:29
extra the
jennyz
2014/10/01 17:43:54
Done.
| |
119 // Swap the left and right channel if |swap| is true; otherwise, swap the left | |
cychiang
2014/10/01 02:36:29
dbus message will be dropped if this feature is no
jennyz
2014/10/01 17:43:54
Done.
| |
120 // and right channel back to the normal mode. | |
121 virtual void SwapLeftRight(uint64 node_id, bool swap) = 0; | |
122 | |
118 // Creates the instance. | 123 // Creates the instance. |
119 static CrasAudioClient* Create(); | 124 static CrasAudioClient* Create(); |
120 | 125 |
121 protected: | 126 protected: |
122 // Create() should be used instead. | 127 // Create() should be used instead. |
123 CrasAudioClient(); | 128 CrasAudioClient(); |
124 | 129 |
125 private: | 130 private: |
126 DISALLOW_COPY_AND_ASSIGN(CrasAudioClient); | 131 DISALLOW_COPY_AND_ASSIGN(CrasAudioClient); |
127 }; | 132 }; |
128 | 133 |
129 } // namespace chromeos | 134 } // namespace chromeos |
130 | 135 |
131 #endif // CHROMEOS_DBUS_CRAS_AUDIO_CLIENT_H_ | 136 #endif // CHROMEOS_DBUS_CRAS_AUDIO_CLIENT_H_ |
OLD | NEW |