Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 null if no |
|
hlundin-webrtc
2016/09/22 12:36:16
null -> empty?
ossu
2016/09/22 14:43:06
Yes! Good catch!
| |
| 262 // such payload type was registered, or if it was registered without | 262 // such payload type was registered, or if it was registered without |
| 263 // providing an SdpAudioFormat. | 263 // providing an SdpAudioFormat. |
| 264 virtual const SdpAudioFormat* GetDecoderFormat(int payload_type) const = 0; | 264 virtual rtc::Optional<SdpAudioFormat> GetDecoderFormat( |
| 265 int payload_type) const = 0; | |
| 265 | 266 |
| 266 // Not implemented. | 267 // Not implemented. |
| 267 virtual int SetTargetNumberOfChannels() = 0; | 268 virtual int SetTargetNumberOfChannels() = 0; |
| 268 | 269 |
| 269 // Not implemented. | 270 // Not implemented. |
| 270 virtual int SetTargetSampleRate() = 0; | 271 virtual int SetTargetSampleRate() = 0; |
| 271 | 272 |
| 272 // Returns the error code for the last occurred error. If no error has | 273 // Returns the error code for the last occurred error. If no error has |
| 273 // occurred, 0 is returned. | 274 // occurred, 0 is returned. |
| 274 virtual int LastError() const = 0; | 275 virtual int LastError() const = 0; |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 299 | 300 |
| 300 protected: | 301 protected: |
| 301 NetEq() {} | 302 NetEq() {} |
| 302 | 303 |
| 303 private: | 304 private: |
| 304 RTC_DISALLOW_COPY_AND_ASSIGN(NetEq); | 305 RTC_DISALLOW_COPY_AND_ASSIGN(NetEq); |
| 305 }; | 306 }; |
| 306 | 307 |
| 307 } // namespace webrtc | 308 } // namespace webrtc |
| 308 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_ | 309 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_ |
| OLD | NEW |