| 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) override; | 42 const AudioParameters& params, |
| 43 const LogCallback& log_callback) override; |
| 43 AudioOutputStream* MakeLowLatencyOutputStream( | 44 AudioOutputStream* MakeLowLatencyOutputStream( |
| 44 const AudioParameters& params, | 45 const AudioParameters& params, |
| 45 const std::string& device_id) override; | 46 const std::string& device_id, |
| 47 const LogCallback& log_callback) override; |
| 46 AudioInputStream* MakeLinearInputStream( | 48 AudioInputStream* MakeLinearInputStream( |
| 47 const AudioParameters& params, | 49 const AudioParameters& params, |
| 48 const std::string& device_id) override; | 50 const std::string& device_id, |
| 51 const LogCallback& log_callback) override; |
| 49 AudioInputStream* MakeLowLatencyInputStream( | 52 AudioInputStream* MakeLowLatencyInputStream( |
| 50 const AudioParameters& params, | 53 const AudioParameters& params, |
| 51 const std::string& device_id) override; | 54 const std::string& device_id, |
| 55 const LogCallback& log_callback) override; |
| 52 std::string GetDefaultOutputDeviceID() override; | 56 std::string GetDefaultOutputDeviceID() override; |
| 53 | 57 |
| 54 protected: | 58 protected: |
| 55 ~AudioManagerWin() override; | 59 ~AudioManagerWin() override; |
| 56 | 60 |
| 57 AudioParameters GetPreferredOutputStreamParameters( | 61 AudioParameters GetPreferredOutputStreamParameters( |
| 58 const std::string& output_device_id, | 62 const std::string& output_device_id, |
| 59 const AudioParameters& input_params) override; | 63 const AudioParameters& input_params) override; |
| 60 | 64 |
| 61 private: | 65 private: |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 98 |
| 95 // Listen for output device changes. | 99 // Listen for output device changes. |
| 96 std::unique_ptr<AudioDeviceListenerWin> output_device_listener_; | 100 std::unique_ptr<AudioDeviceListenerWin> output_device_listener_; |
| 97 | 101 |
| 98 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin); | 102 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin); |
| 99 }; | 103 }; |
| 100 | 104 |
| 101 } // namespace media | 105 } // namespace media |
| 102 | 106 |
| 103 #endif // MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ | 107 #endif // MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ |
| OLD | NEW |