| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 MEDIA_AUDIO_FAKE_AUDIO_MANAGER_H_ | 5 #ifndef MEDIA_AUDIO_FAKE_AUDIO_MANAGER_H_ |
| 6 #define MEDIA_AUDIO_FAKE_AUDIO_MANAGER_H_ | 6 #define MEDIA_AUDIO_FAKE_AUDIO_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 // Implementation of AudioManager. | 24 // Implementation of AudioManager. |
| 25 bool HasAudioOutputDevices() override; | 25 bool HasAudioOutputDevices() override; |
| 26 bool HasAudioInputDevices() override; | 26 bool HasAudioInputDevices() override; |
| 27 | 27 |
| 28 // Implementation of AudioManagerBase. | 28 // Implementation of AudioManagerBase. |
| 29 AudioOutputStream* MakeLinearOutputStream( | 29 AudioOutputStream* MakeLinearOutputStream( |
| 30 const AudioParameters& params) override; | 30 const AudioParameters& params) override; |
| 31 AudioOutputStream* MakeLowLatencyOutputStream( | 31 AudioOutputStream* MakeLowLatencyOutputStream( |
| 32 const AudioParameters& params, | 32 const AudioParameters& params, |
| 33 const std::string& device_id) override; | 33 const std::string& device_id, |
| 34 const StatisticsCallback& statistics_callback) override; |
| 34 AudioInputStream* MakeLinearInputStream( | 35 AudioInputStream* MakeLinearInputStream( |
| 35 const AudioParameters& params, | 36 const AudioParameters& params, |
| 36 const std::string& device_id) override; | 37 const std::string& device_id) override; |
| 37 AudioInputStream* MakeLowLatencyInputStream( | 38 AudioInputStream* MakeLowLatencyInputStream( |
| 38 const AudioParameters& params, | 39 const AudioParameters& params, |
| 39 const std::string& device_id) override; | 40 const std::string& device_id) override; |
| 40 AudioParameters GetInputStreamParameters( | 41 AudioParameters GetInputStreamParameters( |
| 41 const std::string& device_id) override; | 42 const std::string& device_id) override; |
| 42 | 43 |
| 43 protected: | 44 protected: |
| 44 ~FakeAudioManager() override; | 45 ~FakeAudioManager() override; |
| 45 | 46 |
| 46 AudioParameters GetPreferredOutputStreamParameters( | 47 AudioParameters GetPreferredOutputStreamParameters( |
| 47 const std::string& output_device_id, | 48 const std::string& output_device_id, |
| 48 const AudioParameters& input_params) override; | 49 const AudioParameters& input_params) override; |
| 49 | 50 |
| 50 private: | 51 private: |
| 51 DISALLOW_COPY_AND_ASSIGN(FakeAudioManager); | 52 DISALLOW_COPY_AND_ASSIGN(FakeAudioManager); |
| 52 }; | 53 }; |
| 53 | 54 |
| 54 } // namespace media | 55 } // namespace media |
| 55 | 56 |
| 56 #endif // MEDIA_AUDIO_FAKE_AUDIO_MANAGER_H_ | 57 #endif // MEDIA_AUDIO_FAKE_AUDIO_MANAGER_H_ |
| OLD | NEW |