
> 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 TBR=minyue@webrtc.org Review URL: https://webrtc-codereview.appspot.com/34449004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7848 4adac7df-926f-26a2-2b94-8c16560cd09d
28 lines
775 B
C
28 lines
775 B
C
/*
|
|
* Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_OPUS_INST_H_
|
|
#define WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_OPUS_INST_H_
|
|
|
|
#include "opus.h"
|
|
|
|
struct WebRtcOpusEncInst {
|
|
OpusEncoder* encoder;
|
|
};
|
|
|
|
struct WebRtcOpusDecInst {
|
|
OpusDecoder* decoder;
|
|
int prev_decoded_samples;
|
|
int channels;
|
|
};
|
|
|
|
|
|
#endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_OPUS_INST_H_
|