diff options
Diffstat (limited to 'webrtc/modules/audio_coding/codecs/opus/opus_inst.h')
-rw-r--r-- | webrtc/modules/audio_coding/codecs/opus/opus_inst.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/webrtc/modules/audio_coding/codecs/opus/opus_inst.h b/webrtc/modules/audio_coding/codecs/opus/opus_inst.h index 373db392a6..8d032baf35 100644 --- a/webrtc/modules/audio_coding/codecs/opus/opus_inst.h +++ b/webrtc/modules/audio_coding/codecs/opus/opus_inst.h @@ -11,17 +11,26 @@ #ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_OPUS_INST_H_ #define WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_OPUS_INST_H_ +#include <stddef.h> + #include "opus.h" struct WebRtcOpusEncInst { OpusEncoder* encoder; + size_t channels; int in_dtx_mode; + // When Opus is in DTX mode, we use |zero_counts| to count consecutive zeros + // to break long zero segment so as to prevent DTX from going wrong. We use + // one counter for each channel. After each encoding, |zero_counts| contain + // the remaining zeros from the last frame. + // TODO(minyue): remove this when Opus gets an internal fix to DTX. + size_t* zero_counts; }; struct WebRtcOpusDecInst { OpusDecoder* decoder; int prev_decoded_samples; - int channels; + size_t channels; int in_dtx_mode; }; |