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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 // | 245 // |
246 // Return value: | 246 // Return value: |
247 // positive; sampling frequency [Hz] of the current encoder. | 247 // positive; sampling frequency [Hz] of the current encoder. |
248 // -1 if an error has happened. | 248 // -1 if an error has happened. |
249 // | 249 // |
250 virtual int32_t SendFrequency() const = 0; | 250 virtual int32_t SendFrequency() const = 0; |
251 | 251 |
252 /////////////////////////////////////////////////////////////////////////// | 252 /////////////////////////////////////////////////////////////////////////// |
253 // Sets the bitrate to the specified value in bits/sec. If the value is not | 253 // Sets the bitrate to the specified value in bits/sec. If the value is not |
254 // supported by the codec, it will choose another appropriate value. | 254 // supported by the codec, it will choose another appropriate value. |
| 255 // |
| 256 // This is only used in audio_coding_module_unittest_oldapi.cc. |
| 257 // TODO(minyue): Remove it when possible. |
255 virtual void SetBitRate(int bitrate_bps) = 0; | 258 virtual void SetBitRate(int bitrate_bps) = 0; |
256 | 259 |
257 // int32_t RegisterTransportCallback() | 260 // int32_t RegisterTransportCallback() |
258 // Register a transport callback which will be called to deliver | 261 // Register a transport callback which will be called to deliver |
259 // the encoded buffers whenever Process() is called and a | 262 // the encoded buffers whenever Process() is called and a |
260 // bit-stream is ready. | 263 // bit-stream is ready. |
261 // | 264 // |
262 // Input: | 265 // Input: |
263 // -transport : pointer to the callback class | 266 // -transport : pointer to the callback class |
264 // transport->SendData() is called whenever | 267 // transport->SendData() is called whenever |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 // loss gnostic encoding to make stream less sensitive to packet losses, | 367 // loss gnostic encoding to make stream less sensitive to packet losses, |
365 // through e.g., FEC. No effects on codecs that do not provide such encoding. | 368 // through e.g., FEC. No effects on codecs that do not provide such encoding. |
366 // | 369 // |
367 // Input: | 370 // Input: |
368 // -packet_loss_rate : expected packet loss rate (0 -- 100 inclusive). | 371 // -packet_loss_rate : expected packet loss rate (0 -- 100 inclusive). |
369 // | 372 // |
370 // Return value | 373 // Return value |
371 // -1 if failed to set packet loss rate, | 374 // -1 if failed to set packet loss rate, |
372 // 0 if succeeded. | 375 // 0 if succeeded. |
373 // | 376 // |
| 377 // This is only used in audio_coding_module_unittest_oldapi.cc. |
| 378 // TODO(minyue): Remove it when possible. |
374 virtual int SetPacketLossRate(int packet_loss_rate) = 0; | 379 virtual int SetPacketLossRate(int packet_loss_rate) = 0; |
375 | 380 |
376 /////////////////////////////////////////////////////////////////////////// | 381 /////////////////////////////////////////////////////////////////////////// |
377 // (VAD) Voice Activity Detection | 382 // (VAD) Voice Activity Detection |
378 // | 383 // |
379 | 384 |
380 /////////////////////////////////////////////////////////////////////////// | 385 /////////////////////////////////////////////////////////////////////////// |
381 // int32_t SetVAD() | 386 // int32_t SetVAD() |
382 // If DTX is enabled & the codec does not have internal DTX/VAD | 387 // If DTX is enabled & the codec does not have internal DTX/VAD |
383 // WebRtc VAD will be automatically enabled and |enable_vad| is ignored. | 388 // WebRtc VAD will be automatically enabled and |enable_vad| is ignored. |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 virtual std::vector<uint16_t> GetNackList( | 799 virtual std::vector<uint16_t> GetNackList( |
795 int64_t round_trip_time_ms) const = 0; | 800 int64_t round_trip_time_ms) const = 0; |
796 | 801 |
797 virtual void GetDecodingCallStatistics( | 802 virtual void GetDecodingCallStatistics( |
798 AudioDecodingCallStats* call_stats) const = 0; | 803 AudioDecodingCallStats* call_stats) const = 0; |
799 }; | 804 }; |
800 | 805 |
801 } // namespace webrtc | 806 } // namespace webrtc |
802 | 807 |
803 #endif // WEBRTC_MODULES_AUDIO_CODING_INCLUDE_AUDIO_CODING_MODULE_H_ | 808 #endif // WEBRTC_MODULES_AUDIO_CODING_INCLUDE_AUDIO_CODING_MODULE_H_ |
OLD | NEW |