| 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 FakeAudioManager::FakeAudioManager(AudioLogFactory* audio_log_factory) | 9 FakeAudioManager::FakeAudioManager(AudioLogFactory* audio_log_factory) |
| 10 : AudioManagerBase(audio_log_factory) {} | 10 : AudioManagerBase(audio_log_factory) {} |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 if (input_params.IsValid()) { | 56 if (input_params.IsValid()) { |
| 57 sample_rate = input_params.sample_rate(); | 57 sample_rate = input_params.sample_rate(); |
| 58 bits_per_sample = input_params.bits_per_sample(); | 58 bits_per_sample = input_params.bits_per_sample(); |
| 59 channel_layout = input_params.channel_layout(); | 59 channel_layout = input_params.channel_layout(); |
| 60 input_channels = input_params.input_channels(); | 60 input_channels = input_params.input_channels(); |
| 61 buffer_size = std::min(input_params.frames_per_buffer(), buffer_size); | 61 buffer_size = std::min(input_params.frames_per_buffer(), buffer_size); |
| 62 } | 62 } |
| 63 | 63 |
| 64 return AudioParameters( | 64 return AudioParameters( |
| 65 AudioParameters::AUDIO_PCM_LOW_LATENCY, channel_layout, input_channels, | 65 AudioParameters::AUDIO_PCM_LOW_LATENCY, channel_layout, input_channels, |
| 66 sample_rate, bits_per_sample, buffer_size); | 66 sample_rate, bits_per_sample, buffer_size, AudioParameters::NO_EFFECTS); |
| 67 } | 67 } |
| 68 | 68 |
| 69 } // namespace media | 69 } // namespace media |
| OLD | NEW |