| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 input_file_channels_(input_channels), | 124 input_file_channels_(input_channels), |
| 125 reverse_audio_(reverse_file_name, reverse_rate_hz, reverse_rate_hz), | 125 reverse_audio_(reverse_file_name, reverse_rate_hz, reverse_rate_hz), |
| 126 reverse_file_channels_(reverse_channels), | 126 reverse_file_channels_(reverse_channels), |
| 127 input_(new ChannelBuffer<float>(input_config_.num_frames(), | 127 input_(new ChannelBuffer<float>(input_config_.num_frames(), |
| 128 input_config_.num_channels())), | 128 input_config_.num_channels())), |
| 129 reverse_(new ChannelBuffer<float>(reverse_config_.num_frames(), | 129 reverse_(new ChannelBuffer<float>(reverse_config_.num_frames(), |
| 130 reverse_config_.num_channels())), | 130 reverse_config_.num_channels())), |
| 131 output_(new ChannelBuffer<float>(output_config_.num_frames(), | 131 output_(new ChannelBuffer<float>(output_config_.num_frames(), |
| 132 output_config_.num_channels())), | 132 output_config_.num_channels())), |
| 133 apm_(AudioProcessing::Create(config)), | 133 apm_(AudioProcessing::Create(config)), |
| 134 dump_file_name_(dump_file_name) { | 134 dump_file_name_(dump_file_name) {} |
| 135 } | |
| 136 | 135 |
| 137 DebugDumpGenerator::DebugDumpGenerator( | 136 DebugDumpGenerator::DebugDumpGenerator( |
| 138 const Config& config, | 137 const Config& config, |
| 139 const AudioProcessing::Config& apm_config) | 138 const AudioProcessing::Config& apm_config) |
| 140 : DebugDumpGenerator(ResourcePath("near32_stereo", "pcm"), | 139 : DebugDumpGenerator(ResourcePath("near32_stereo", "pcm"), |
| 141 32000, | 140 32000, |
| 142 2, | 141 2, |
| 143 ResourcePath("far32_stereo", "pcm"), | 142 ResourcePath("far32_stereo", "pcm"), |
| 144 32000, | 143 32000, |
| 145 2, | 144 2, |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 config.Set<ExperimentalNs>(new ExperimentalNs(true)); | 587 config.Set<ExperimentalNs>(new ExperimentalNs(true)); |
| 589 DebugDumpGenerator generator(config, AudioProcessing::Config()); | 588 DebugDumpGenerator generator(config, AudioProcessing::Config()); |
| 590 generator.StartRecording(); | 589 generator.StartRecording(); |
| 591 generator.Process(100); | 590 generator.Process(100); |
| 592 generator.StopRecording(); | 591 generator.StopRecording(); |
| 593 VerifyDebugDump(generator.dump_file_name()); | 592 VerifyDebugDump(generator.dump_file_name()); |
| 594 } | 593 } |
| 595 | 594 |
| 596 } // namespace test | 595 } // namespace test |
| 597 } // namespace webrtc | 596 } // namespace webrtc |
| OLD | NEW |