Adding DTX to WebRTC Opus wrapper
This is a step toward adding Opus DTX support in WebRTC. Note that opus_encode() returns 1 byte in case of DTX, then the packet does not need to be transmitted. See https://mf4.xiph.org/jenkins/view/opus/job/opus/ws/doc/html/group__opus__encoder.html We transmit the first 1-byte packet to let decoder be in-sync BUG=webrtc:1014 R=henrik.lundin@webrtc.org Review URL: https://webrtc-codereview.appspot.com/13219004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7846 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -15,12 +15,14 @@
|
||||
|
||||
struct WebRtcOpusEncInst {
|
||||
OpusEncoder* encoder;
|
||||
int in_dtx_mode;
|
||||
};
|
||||
|
||||
struct WebRtcOpusDecInst {
|
||||
OpusDecoder* decoder;
|
||||
int prev_decoded_samples;
|
||||
int channels;
|
||||
int in_dtx_mode;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user