Setting OPUS_SIGNAL_VOICE when enable DTX.
A better solution than forcing OPUS_APPLICATION_VOIP when enabling DTX has been found, which is to set OPUS_SIGNAL_VOICE. This reduces the uncertainty of entering DTX over silence period of audio. This CL contains the setup of OPUS_SIGNAL_VOICE and decoupling opus application mode with DTX. BUG=4559 R=henrik.lundin@webrtc.org, henrika@webrtc.org Review URL: https://webrtc-codereview.appspot.com/46959004 Cr-Commit-Position: refs/heads/master@{#9168}
This commit is contained in:
@ -124,14 +124,12 @@ class AudioEncoderMutable : public AudioEncoder {
|
||||
virtual bool SetFec(bool enable) = 0;
|
||||
|
||||
// Enables or disables codec-internal VAD/DTX, if the implementation supports
|
||||
// it. Otherwise, false is returned. If |force| is true, other configurations
|
||||
// may be changed to allow the operation.
|
||||
virtual bool SetDtx(bool enable, bool force) = 0;
|
||||
// it.
|
||||
virtual bool SetDtx(bool enable) = 0;
|
||||
|
||||
// Sets the application mode. The implementation is free to disregard this
|
||||
// setting. If |force| is true, other configurations may be changed to allow
|
||||
// the operation.
|
||||
virtual bool SetApplication(Application application, bool force) = 0;
|
||||
// setting.
|
||||
virtual bool SetApplication(Application application) = 0;
|
||||
|
||||
// Sets an upper limit on the payload size produced by the encoder. The
|
||||
// implementation is free to disregard this setting.
|
||||
|
||||
Reference in New Issue
Block a user