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

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

Issue 2390883004: Hooking up audio network adaptor to VoE. (Closed)
Patch Set: adding a comment Created 4 years, 2 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 // 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 test code that rely on old ACM APIs.
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
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 test code that rely on old ACM APIs.
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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 virtual std::vector<uint16_t> GetNackList( 804 virtual std::vector<uint16_t> GetNackList(
800 int64_t round_trip_time_ms) const = 0; 805 int64_t round_trip_time_ms) const = 0;
801 806
802 virtual void GetDecodingCallStatistics( 807 virtual void GetDecodingCallStatistics(
803 AudioDecodingCallStats* call_stats) const = 0; 808 AudioDecodingCallStats* call_stats) const = 0;
804 }; 809 };
805 810
806 } // namespace webrtc 811 } // namespace webrtc
807 812
808 #endif // WEBRTC_MODULES_AUDIO_CODING_INCLUDE_AUDIO_CODING_MODULE_H_ 813 #endif // WEBRTC_MODULES_AUDIO_CODING_INCLUDE_AUDIO_CODING_MODULE_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc ('k') | webrtc/voice_engine/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698