| 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 #include "media/audio/fake_audio_manager.h" | 5 #include "media/audio/fake_audio_manager.h" |
| 6 | 6 |
| 7 namespace media { | 7 namespace media { |
| 8 | 8 |
| 9 namespace { | 9 namespace { |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 bool FakeAudioManager::HasAudioInputDevices() { return false; } | 26 bool FakeAudioManager::HasAudioInputDevices() { return false; } |
| 27 | 27 |
| 28 // Implementation of AudioManagerBase. | 28 // Implementation of AudioManagerBase. |
| 29 AudioOutputStream* FakeAudioManager::MakeLinearOutputStream( | 29 AudioOutputStream* FakeAudioManager::MakeLinearOutputStream( |
| 30 const AudioParameters& params) { | 30 const AudioParameters& params) { |
| 31 return FakeAudioOutputStream::MakeFakeStream(this, params); | 31 return FakeAudioOutputStream::MakeFakeStream(this, params); |
| 32 } | 32 } |
| 33 | 33 |
| 34 AudioOutputStream* FakeAudioManager::MakeLowLatencyOutputStream( | 34 AudioOutputStream* FakeAudioManager::MakeLowLatencyOutputStream( |
| 35 const AudioParameters& params, | 35 const AudioParameters& params, |
| 36 const std::string& device_id, | 36 const std::string& device_id) { |
| 37 const std::string& input_device_id) { | |
| 38 return FakeAudioOutputStream::MakeFakeStream(this, params); | 37 return FakeAudioOutputStream::MakeFakeStream(this, params); |
| 39 } | 38 } |
| 40 | 39 |
| 41 AudioInputStream* FakeAudioManager::MakeLinearInputStream( | 40 AudioInputStream* FakeAudioManager::MakeLinearInputStream( |
| 42 const AudioParameters& params, | 41 const AudioParameters& params, |
| 43 const std::string& device_id) { | 42 const std::string& device_id) { |
| 44 return FakeAudioInputStream::MakeFakeStream(this, params); | 43 return FakeAudioInputStream::MakeFakeStream(this, params); |
| 45 } | 44 } |
| 46 | 45 |
| 47 AudioInputStream* FakeAudioManager::MakeLowLatencyInputStream( | 46 AudioInputStream* FakeAudioManager::MakeLowLatencyInputStream( |
| (...skipping 26 matching lines...) Expand all Loading... |
| 74 } | 73 } |
| 75 | 74 |
| 76 AudioParameters FakeAudioManager::GetInputStreamParameters( | 75 AudioParameters FakeAudioManager::GetInputStreamParameters( |
| 77 const std::string& device_id) { | 76 const std::string& device_id) { |
| 78 return AudioParameters( | 77 return AudioParameters( |
| 79 AudioParameters::AUDIO_PCM_LOW_LATENCY, CHANNEL_LAYOUT_STEREO, | 78 AudioParameters::AUDIO_PCM_LOW_LATENCY, CHANNEL_LAYOUT_STEREO, |
| 80 kDefaultSampleRate, 16, kDefaultInputBufferSize); | 79 kDefaultSampleRate, 16, kDefaultInputBufferSize); |
| 81 } | 80 } |
| 82 | 81 |
| 83 } // namespace media | 82 } // namespace media |
| OLD | NEW |