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

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

Issue 2027993002: NetEq: Ask AudioDecoder for sample rate instead of passing it as an argument (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@samprate1
Patch Set: rebase Created 4 years, 6 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 int GetAudio(AudioFrame* audio_frame, bool* muted) override; 122 int GetAudio(AudioFrame* audio_frame, bool* muted) override;
123 123
124 int RegisterPayloadType(NetEqDecoder codec, 124 int RegisterPayloadType(NetEqDecoder codec,
125 const std::string& codec_name, 125 const std::string& codec_name,
126 uint8_t rtp_payload_type) override; 126 uint8_t rtp_payload_type) override;
127 127
128 int RegisterExternalDecoder(AudioDecoder* decoder, 128 int RegisterExternalDecoder(AudioDecoder* decoder,
129 NetEqDecoder codec, 129 NetEqDecoder codec,
130 const std::string& codec_name, 130 const std::string& codec_name,
131 uint8_t rtp_payload_type, 131 uint8_t rtp_payload_type) override;
132 int sample_rate_hz) override;
133 132
134 // Removes |rtp_payload_type| from the codec database. Returns 0 on success, 133 // Removes |rtp_payload_type| from the codec database. Returns 0 on success,
135 // -1 on failure. 134 // -1 on failure.
136 int RemovePayloadType(uint8_t rtp_payload_type) override; 135 int RemovePayloadType(uint8_t rtp_payload_type) override;
137 136
138 bool SetMinimumDelay(int delay_ms) override; 137 bool SetMinimumDelay(int delay_ms) override;
139 138
140 bool SetMaximumDelay(int delay_ms) override; 139 bool SetMaximumDelay(int delay_ms) override;
141 140
142 int LeastRequiredDelayMs() const override; 141 int LeastRequiredDelayMs() const override;
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 AudioFrame::kVadPassive; 411 AudioFrame::kVadPassive;
413 std::unique_ptr<TickTimer::Stopwatch> generated_noise_stopwatch_ 412 std::unique_ptr<TickTimer::Stopwatch> generated_noise_stopwatch_
414 GUARDED_BY(crit_sect_); 413 GUARDED_BY(crit_sect_);
415 414
416 private: 415 private:
417 RTC_DISALLOW_COPY_AND_ASSIGN(NetEqImpl); 416 RTC_DISALLOW_COPY_AND_ASSIGN(NetEqImpl);
418 }; 417 };
419 418
420 } // namespace webrtc 419 } // namespace webrtc
421 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_NETEQ_IMPL_H_ 420 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_NETEQ_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/mock/mock_decoder_database.h ('k') | webrtc/modules/audio_coding/neteq/neteq_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698