| 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 "media/audio/audio_manager_base.h" | 10 #include "media/audio/audio_manager_base.h" |
| 11 #include "media/audio/fake_audio_input_stream.h" | 11 #include "media/audio/fake_audio_input_stream.h" |
| 12 #include "media/audio/fake_audio_output_stream.h" | 12 #include "media/audio/fake_audio_output_stream.h" |
| 13 | 13 |
| 14 namespace media { | 14 namespace media { |
| 15 | 15 |
| 16 class MEDIA_EXPORT FakeAudioManager : public AudioManagerBase { | 16 class MEDIA_EXPORT FakeAudioManager : public AudioManagerBase { |
| 17 public: | 17 public: |
| 18 FakeAudioManager(AudioLogFactory* audio_log_factory); | 18 FakeAudioManager(AudioLogFactory* audio_log_factory); |
| 19 | 19 |
| 20 // Implementation of AudioManager. | 20 // Implementation of AudioManager. |
| 21 bool HasAudioOutputDevices() override; | 21 bool HasAudioOutputDevices() override; |
| 22 bool HasAudioInputDevices() override; | 22 bool HasAudioInputDevices() override; |
| 23 void SetHasInputDevices(bool has_input_devices) override; |
| 23 | 24 |
| 24 // Implementation of AudioManagerBase. | 25 // Implementation of AudioManagerBase. |
| 25 AudioOutputStream* MakeLinearOutputStream( | 26 AudioOutputStream* MakeLinearOutputStream( |
| 26 const AudioParameters& params) override; | 27 const AudioParameters& params) override; |
| 27 AudioOutputStream* MakeLowLatencyOutputStream( | 28 AudioOutputStream* MakeLowLatencyOutputStream( |
| 28 const AudioParameters& params, | 29 const AudioParameters& params, |
| 29 const std::string& device_id) override; | 30 const std::string& device_id) override; |
| 30 AudioInputStream* MakeLinearInputStream( | 31 AudioInputStream* MakeLinearInputStream( |
| 31 const AudioParameters& params, | 32 const AudioParameters& params, |
| 32 const std::string& device_id) override; | 33 const std::string& device_id) override; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 43 const std::string& output_device_id, | 44 const std::string& output_device_id, |
| 44 const AudioParameters& input_params) override; | 45 const AudioParameters& input_params) override; |
| 45 | 46 |
| 46 private: | 47 private: |
| 47 DISALLOW_COPY_AND_ASSIGN(FakeAudioManager); | 48 DISALLOW_COPY_AND_ASSIGN(FakeAudioManager); |
| 48 }; | 49 }; |
| 49 | 50 |
| 50 } // namespace media | 51 } // namespace media |
| 51 | 52 |
| 52 #endif // MEDIA_AUDIO_FAKE_AUDIO_MANAGER_H_ | 53 #endif // MEDIA_AUDIO_FAKE_AUDIO_MANAGER_H_ |
| OLD | NEW |