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

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

Issue 2348123002: Revert of AcmReceiver: Look up last decoder in NetEq's table of decoders (Closed)
Patch Set: Created 4 years, 3 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 245
246 // Returns the RTP timestamp for the last sample delivered by GetAudio(). 246 // Returns the RTP timestamp for the last sample delivered by GetAudio().
247 // The return value will be empty if no valid timestamp is available. 247 // The return value will be empty if no valid timestamp is available.
248 virtual rtc::Optional<uint32_t> GetPlayoutTimestamp() const = 0; 248 virtual rtc::Optional<uint32_t> GetPlayoutTimestamp() const = 0;
249 249
250 // Returns the sample rate in Hz of the audio produced in the last GetAudio 250 // Returns the sample rate in Hz of the audio produced in the last GetAudio
251 // call. If GetAudio has not been called yet, the configured sample rate 251 // call. If GetAudio has not been called yet, the configured sample rate
252 // (Config::sample_rate_hz) is returned. 252 // (Config::sample_rate_hz) is returned.
253 virtual int last_output_sample_rate_hz() const = 0; 253 virtual int last_output_sample_rate_hz() const = 0;
254 254
255 virtual rtc::Optional<CodecInst> GetDecoder(int payload_type) const = 0;
256
257 // Not implemented. 255 // Not implemented.
258 virtual int SetTargetNumberOfChannels() = 0; 256 virtual int SetTargetNumberOfChannels() = 0;
259 257
260 // Not implemented. 258 // Not implemented.
261 virtual int SetTargetSampleRate() = 0; 259 virtual int SetTargetSampleRate() = 0;
262 260
263 // Returns the error code for the last occurred error. If no error has 261 // Returns the error code for the last occurred error. If no error has
264 // occurred, 0 is returned. 262 // occurred, 0 is returned.
265 virtual int LastError() const = 0; 263 virtual int LastError() const = 0;
266 264
(...skipping 23 matching lines...) Expand all
290 288
291 protected: 289 protected:
292 NetEq() {} 290 NetEq() {}
293 291
294 private: 292 private:
295 RTC_DISALLOW_COPY_AND_ASSIGN(NetEq); 293 RTC_DISALLOW_COPY_AND_ASSIGN(NetEq);
296 }; 294 };
297 295
298 } // namespace webrtc 296 } // namespace webrtc
299 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_ 297 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/acm2/acm_receiver_unittest_oldapi.cc ('k') | webrtc/modules/audio_coding/neteq/neteq_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698