OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 #define LEGACY_BITEXACT | 53 #define LEGACY_BITEXACT |
54 | 54 |
55 namespace webrtc { | 55 namespace webrtc { |
56 | 56 |
57 NetEqImpl::Dependencies::Dependencies(const NetEq::Config& config) | 57 NetEqImpl::Dependencies::Dependencies(const NetEq::Config& config) |
58 : tick_timer(new TickTimer), | 58 : tick_timer(new TickTimer), |
59 buffer_level_filter(new BufferLevelFilter), | 59 buffer_level_filter(new BufferLevelFilter), |
60 decoder_database(new DecoderDatabase), | 60 decoder_database(new DecoderDatabase), |
61 delay_peak_detector(new DelayPeakDetector(tick_timer.get())), | 61 delay_peak_detector(new DelayPeakDetector(tick_timer.get())), |
62 delay_manager(new DelayManager(config.max_packets_in_buffer, | 62 delay_manager(new DelayManager(config.max_packets_in_buffer, |
63 delay_peak_detector.get())), | 63 delay_peak_detector.get(), |
| 64 tick_timer.get())), |
64 dtmf_buffer(new DtmfBuffer(config.sample_rate_hz)), | 65 dtmf_buffer(new DtmfBuffer(config.sample_rate_hz)), |
65 dtmf_tone_generator(new DtmfToneGenerator), | 66 dtmf_tone_generator(new DtmfToneGenerator), |
66 packet_buffer( | 67 packet_buffer( |
67 new PacketBuffer(config.max_packets_in_buffer, tick_timer.get())), | 68 new PacketBuffer(config.max_packets_in_buffer, tick_timer.get())), |
68 payload_splitter(new PayloadSplitter), | 69 payload_splitter(new PayloadSplitter), |
69 timestamp_scaler(new TimestampScaler(*decoder_database)), | 70 timestamp_scaler(new TimestampScaler(*decoder_database)), |
70 accelerate_factory(new AccelerateFactory), | 71 accelerate_factory(new AccelerateFactory), |
71 expand_factory(new ExpandFactory), | 72 expand_factory(new ExpandFactory), |
72 preemptive_expand_factory(new PreemptiveExpandFactory) {} | 73 preemptive_expand_factory(new PreemptiveExpandFactory) {} |
73 | 74 |
(...skipping 2039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2113 | 2114 |
2114 void NetEqImpl::CreateDecisionLogic() { | 2115 void NetEqImpl::CreateDecisionLogic() { |
2115 decision_logic_.reset(DecisionLogic::Create(fs_hz_, output_size_samples_, | 2116 decision_logic_.reset(DecisionLogic::Create(fs_hz_, output_size_samples_, |
2116 playout_mode_, | 2117 playout_mode_, |
2117 decoder_database_.get(), | 2118 decoder_database_.get(), |
2118 *packet_buffer_.get(), | 2119 *packet_buffer_.get(), |
2119 delay_manager_.get(), | 2120 delay_manager_.get(), |
2120 buffer_level_filter_.get())); | 2121 buffer_level_filter_.get())); |
2121 } | 2122 } |
2122 } // namespace webrtc | 2123 } // namespace webrtc |
OLD | NEW |