Expose NetEq playout mode off through VoiceEngine.
BUG= Review URL: https://webrtc-codereview.appspot.com/971016 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3272 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -324,6 +324,9 @@ WebRtc_Word32 ACMNetEQ::SetPlayoutMode(const AudioPlayoutMode mode) {
|
||||
case streaming:
|
||||
playoutMode = kPlayoutStreaming;
|
||||
break;
|
||||
case off:
|
||||
playoutMode = kPlayoutOff;
|
||||
break;
|
||||
}
|
||||
if (WebRtcNetEQ_SetPlayoutMode(_inst[idx], playoutMode) < 0) {
|
||||
LogError("SetPlayoutMode", idx);
|
||||
@ -984,6 +987,9 @@ WebRtc_Word16 ACMNetEQ::AddSlave(const WebRtcNetEQDecoder* usedCodecs,
|
||||
case streaming:
|
||||
playoutMode = kPlayoutStreaming;
|
||||
break;
|
||||
case off:
|
||||
playoutMode = kPlayoutOff;
|
||||
break;
|
||||
}
|
||||
if (WebRtcNetEQ_SetPlayoutMode(_inst[slaveIdx], playoutMode) < 0) {
|
||||
LogError("SetPlayoutMode", 1);
|
||||
|
||||
@ -2226,7 +2226,8 @@ WebRtc_Word32 AudioCodingModuleImpl::DecoderEstimatedBandwidth() const {
|
||||
// Set playout mode for: voice, fax, or streaming.
|
||||
WebRtc_Word32 AudioCodingModuleImpl::SetPlayoutMode(
|
||||
const AudioPlayoutMode mode) {
|
||||
if ((mode != voice) && (mode != fax) && (mode != streaming)) {
|
||||
if ((mode != voice) && (mode != fax) && (mode != streaming) &&
|
||||
(mode != off)) {
|
||||
WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceAudioCoding, _id,
|
||||
"Invalid playout mode.");
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user