Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Side by Side Diff: webrtc/modules/audio_coding/neteq/neteq_impl.cc

Issue 1921163003: NetEq: Introduce TickTimer in DelayPeakDetector (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@packet-tick-timer
Patch Set: Correcting the function comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // longer required, this #define should be removed (and the code that it 51 // longer required, this #define should be removed (and the code that it
52 // enables). 52 // enables).
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), 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 dtmf_buffer(new DtmfBuffer(config.sample_rate_hz)), 64 dtmf_buffer(new DtmfBuffer(config.sample_rate_hz)),
65 dtmf_tone_generator(new DtmfToneGenerator), 65 dtmf_tone_generator(new DtmfToneGenerator),
66 packet_buffer( 66 packet_buffer(
67 new PacketBuffer(config.max_packets_in_buffer, tick_timer.get())), 67 new PacketBuffer(config.max_packets_in_buffer, tick_timer.get())),
68 payload_splitter(new PayloadSplitter), 68 payload_splitter(new PayloadSplitter),
69 timestamp_scaler(new TimestampScaler(*decoder_database)), 69 timestamp_scaler(new TimestampScaler(*decoder_database)),
70 accelerate_factory(new AccelerateFactory), 70 accelerate_factory(new AccelerateFactory),
71 expand_factory(new ExpandFactory), 71 expand_factory(new ExpandFactory),
(...skipping 2041 matching lines...) Expand 10 before | Expand all | Expand 10 after
2113 2113
2114 void NetEqImpl::CreateDecisionLogic() { 2114 void NetEqImpl::CreateDecisionLogic() {
2115 decision_logic_.reset(DecisionLogic::Create(fs_hz_, output_size_samples_, 2115 decision_logic_.reset(DecisionLogic::Create(fs_hz_, output_size_samples_,
2116 playout_mode_, 2116 playout_mode_,
2117 decoder_database_.get(), 2117 decoder_database_.get(),
2118 *packet_buffer_.get(), 2118 *packet_buffer_.get(),
2119 delay_manager_.get(), 2119 delay_manager_.get(),
2120 buffer_level_filter_.get())); 2120 buffer_level_filter_.get()));
2121 } 2121 }
2122 } // namespace webrtc 2122 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698