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

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

Issue 2355503002: Stopped using the NetEqDecoder enum internally in NetEq. (Closed)
Patch Set: Clarified comments. 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 251
252 // Returns the sample rate in Hz of the audio produced in the last GetAudio 252 // Returns the sample rate in Hz of the audio produced in the last GetAudio
253 // call. If GetAudio has not been called yet, the configured sample rate 253 // call. If GetAudio has not been called yet, the configured sample rate
254 // (Config::sample_rate_hz) is returned. 254 // (Config::sample_rate_hz) is returned.
255 virtual int last_output_sample_rate_hz() const = 0; 255 virtual int last_output_sample_rate_hz() const = 0;
256 256
257 // Returns info about the decoder for the given payload type, or an empty 257 // Returns info about the decoder for the given payload type, or an empty
258 // value if we have no decoder for that payload type. 258 // value if we have no decoder for that payload type.
259 virtual rtc::Optional<CodecInst> GetDecoder(int payload_type) const = 0; 259 virtual rtc::Optional<CodecInst> GetDecoder(int payload_type) const = 0;
260 260
261 // Returns the decoder format for the given payload type. Returns null if no 261 // Returns the decoder format for the given payload type. Returns empty if no
262 // such payload type was registered, or if it was registered without 262 // such payload type was registered.
263 // providing an SdpAudioFormat. 263 virtual rtc::Optional<SdpAudioFormat> GetDecoderFormat(
264 virtual const SdpAudioFormat* GetDecoderFormat(int payload_type) const = 0; 264 int payload_type) const = 0;
265 265
266 // Not implemented. 266 // Not implemented.
267 virtual int SetTargetNumberOfChannels() = 0; 267 virtual int SetTargetNumberOfChannels() = 0;
268 268
269 // Not implemented. 269 // Not implemented.
270 virtual int SetTargetSampleRate() = 0; 270 virtual int SetTargetSampleRate() = 0;
271 271
272 // Returns the error code for the last occurred error. If no error has 272 // Returns the error code for the last occurred error. If no error has
273 // occurred, 0 is returned. 273 // occurred, 0 is returned.
274 virtual int LastError() const = 0; 274 virtual int LastError() const = 0;
(...skipping 24 matching lines...) Expand all
299 299
300 protected: 300 protected:
301 NetEq() {} 301 NetEq() {}
302 302
303 private: 303 private:
304 RTC_DISALLOW_COPY_AND_ASSIGN(NetEq); 304 RTC_DISALLOW_COPY_AND_ASSIGN(NetEq);
305 }; 305 };
306 306
307 } // namespace webrtc 307 } // namespace webrtc
308 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_ 308 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/delay_manager.cc ('k') | webrtc/modules/audio_coding/neteq/mock/mock_audio_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698