OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ | 5 #ifndef MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ |
6 #define MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ | 6 #define MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 void ShowAudioInputSettings() override; | 32 void ShowAudioInputSettings() override; |
33 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; | 33 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; |
34 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; | 34 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; |
35 AudioParameters GetInputStreamParameters( | 35 AudioParameters GetInputStreamParameters( |
36 const std::string& device_id) override; | 36 const std::string& device_id) override; |
37 std::string GetAssociatedOutputDeviceID( | 37 std::string GetAssociatedOutputDeviceID( |
38 const std::string& input_device_id) override; | 38 const std::string& input_device_id) override; |
39 | 39 |
40 // Implementation of AudioManagerBase. | 40 // Implementation of AudioManagerBase. |
41 AudioOutputStream* MakeLinearOutputStream( | 41 AudioOutputStream* MakeLinearOutputStream( |
42 const AudioParameters& params, | 42 const AudioParameters& params) override; |
43 const LogCallback& log_callback) override; | |
44 AudioOutputStream* MakeLowLatencyOutputStream( | 43 AudioOutputStream* MakeLowLatencyOutputStream( |
45 const AudioParameters& params, | 44 const AudioParameters& params, |
46 const std::string& device_id, | 45 const std::string& device_id) override; |
47 const LogCallback& log_callback) override; | |
48 AudioInputStream* MakeLinearInputStream( | 46 AudioInputStream* MakeLinearInputStream( |
49 const AudioParameters& params, | 47 const AudioParameters& params, |
50 const std::string& device_id, | 48 const std::string& device_id) override; |
51 const LogCallback& log_callback) override; | |
52 AudioInputStream* MakeLowLatencyInputStream( | 49 AudioInputStream* MakeLowLatencyInputStream( |
53 const AudioParameters& params, | 50 const AudioParameters& params, |
54 const std::string& device_id, | 51 const std::string& device_id) override; |
55 const LogCallback& log_callback) override; | |
56 std::string GetDefaultOutputDeviceID() override; | 52 std::string GetDefaultOutputDeviceID() override; |
57 | 53 |
58 protected: | 54 protected: |
59 ~AudioManagerWin() override; | 55 ~AudioManagerWin() override; |
60 | 56 |
61 AudioParameters GetPreferredOutputStreamParameters( | 57 AudioParameters GetPreferredOutputStreamParameters( |
62 const std::string& output_device_id, | 58 const std::string& output_device_id, |
63 const AudioParameters& input_params) override; | 59 const AudioParameters& input_params) override; |
64 | 60 |
65 private: | 61 private: |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 94 |
99 // Listen for output device changes. | 95 // Listen for output device changes. |
100 std::unique_ptr<AudioDeviceListenerWin> output_device_listener_; | 96 std::unique_ptr<AudioDeviceListenerWin> output_device_listener_; |
101 | 97 |
102 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin); | 98 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin); |
103 }; | 99 }; |
104 | 100 |
105 } // namespace media | 101 } // namespace media |
106 | 102 |
107 #endif // MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ | 103 #endif // MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ |
OLD | NEW |