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

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

Issue 2339953002: 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;
ossu 2016/09/16 12:10:05 On second thought, should this one maybe be called
256
255 // Not implemented. 257 // Not implemented.
256 virtual int SetTargetNumberOfChannels() = 0; 258 virtual int SetTargetNumberOfChannels() = 0;
257 259
258 // Not implemented. 260 // Not implemented.
259 virtual int SetTargetSampleRate() = 0; 261 virtual int SetTargetSampleRate() = 0;
260 262
261 // Returns the error code for the last occurred error. If no error has 263 // Returns the error code for the last occurred error. If no error has
262 // occurred, 0 is returned. 264 // occurred, 0 is returned.
263 virtual int LastError() const = 0; 265 virtual int LastError() const = 0;
264 266
(...skipping 23 matching lines...) Expand all
288 290
289 protected: 291 protected:
290 NetEq() {} 292 NetEq() {}
291 293
292 private: 294 private:
293 RTC_DISALLOW_COPY_AND_ASSIGN(NetEq); 295 RTC_DISALLOW_COPY_AND_ASSIGN(NetEq);
294 }; 296 };
295 297
296 } // namespace webrtc 298 } // namespace webrtc
297 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_ 299 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698