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_FAKE_CRAS_AUDIO_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_CRAS_AUDIO_CLIENT_H_ |
6 #define CHROMEOS_DBUS_FAKE_CRAS_AUDIO_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_CRAS_AUDIO_CLIENT_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 void SetOutputUserMute(bool mute_on) override; | 33 void SetOutputUserMute(bool mute_on) override; |
34 void SetInputNodeGain(uint64_t node_id, int32_t gain) override; | 34 void SetInputNodeGain(uint64_t node_id, int32_t gain) override; |
35 void SetInputMute(bool mute_on) override; | 35 void SetInputMute(bool mute_on) override; |
36 void SetActiveOutputNode(uint64_t node_id) override; | 36 void SetActiveOutputNode(uint64_t node_id) override; |
37 void SetActiveInputNode(uint64_t node_id) override; | 37 void SetActiveInputNode(uint64_t node_id) override; |
38 void AddActiveInputNode(uint64_t node_id) override; | 38 void AddActiveInputNode(uint64_t node_id) override; |
39 void RemoveActiveInputNode(uint64_t node_id) override; | 39 void RemoveActiveInputNode(uint64_t node_id) override; |
40 void AddActiveOutputNode(uint64_t node_id) override; | 40 void AddActiveOutputNode(uint64_t node_id) override; |
41 void RemoveActiveOutputNode(uint64_t node_id) override; | 41 void RemoveActiveOutputNode(uint64_t node_id) override; |
42 void SwapLeftRight(uint64_t node_id, bool swap) override; | 42 void SwapLeftRight(uint64_t node_id, bool swap) override; |
| 43 void SetGlobalOutputChannelRemix(int32_t channels, |
| 44 const std::vector<double>& mixer) override; |
43 void WaitForServiceToBeAvailable( | 45 void WaitForServiceToBeAvailable( |
44 const WaitForServiceToBeAvailableCallback& callback) override; | 46 const WaitForServiceToBeAvailableCallback& callback) override; |
45 | 47 |
46 // Modifies an AudioNode from |node_list_| based on |audio_node.id|. | 48 // Modifies an AudioNode from |node_list_| based on |audio_node.id|. |
47 // if the |audio_node.id| cannot be found in list, Add an | 49 // if the |audio_node.id| cannot be found in list, Add an |
48 // AudioNode to |node_list_| | 50 // AudioNode to |node_list_| |
49 void InsertAudioNodeToList(const AudioNode& audio_node); | 51 void InsertAudioNodeToList(const AudioNode& audio_node); |
50 | 52 |
51 // Removes an AudioNode from |node_list_| based on |node_id|. | 53 // Removes an AudioNode from |node_list_| based on |node_id|. |
52 void RemoveAudioNodeFromList(const uint64_t& node_id); | 54 void RemoveAudioNodeFromList(const uint64_t& node_id); |
(...skipping 20 matching lines...) Expand all Loading... |
73 uint64_t active_input_node_id_; | 75 uint64_t active_input_node_id_; |
74 uint64_t active_output_node_id_; | 76 uint64_t active_output_node_id_; |
75 base::ObserverList<Observer> observers_; | 77 base::ObserverList<Observer> observers_; |
76 | 78 |
77 DISALLOW_COPY_AND_ASSIGN(FakeCrasAudioClient); | 79 DISALLOW_COPY_AND_ASSIGN(FakeCrasAudioClient); |
78 }; | 80 }; |
79 | 81 |
80 } // namespace chromeos | 82 } // namespace chromeos |
81 | 83 |
82 #endif // CHROMEOS_DBUS_FAKE_CRAS_AUDIO_CLIENT_H_ | 84 #endif // CHROMEOS_DBUS_FAKE_CRAS_AUDIO_CLIENT_H_ |
OLD | NEW |