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);
|
||||
|
||||
Reference in New Issue
Block a user