diff options
author | henrik.lundin@webrtc.org <henrik.lundin@webrtc.org> | 2014-09-23 13:15:14 +0000 |
---|---|---|
committer | henrik.lundin@webrtc.org <henrik.lundin@webrtc.org> | 2014-09-23 13:15:14 +0000 |
commit | 21cb2625b1bfe4c109ce6b846ab9c4e1c40fde4f (patch) | |
tree | 8c039fd7cedb9e7b93e3536cb2ae73e219f0206b /voice_engine/channel.cc | |
parent | f70e6326b671974c374fd58142c49c44b5848d69 (diff) | |
download | webrtc-21cb2625b1bfe4c109ce6b846ab9c4e1c40fde4f.tar.gz |
Revert "Remove DTMF status methods from Voice Engine" r7276
This change caused some trouble.
TBR=henrika@webrtc.org,pbos@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/29569004
git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@7277 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'voice_engine/channel.cc')
-rw-r--r-- | voice_engine/channel.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/voice_engine/channel.cc b/voice_engine/channel.cc index 1d23afd4..93a241be 100644 --- a/voice_engine/channel.cc +++ b/voice_engine/channel.cc @@ -2627,6 +2627,27 @@ int Channel::SendTelephoneEventInband(unsigned char eventCode, } int +Channel::SetDtmfPlayoutStatus(bool enable) +{ + WEBRTC_TRACE(kTraceInfo, kTraceVoice, VoEId(_instanceId,_channelId), + "Channel::SetDtmfPlayoutStatus()"); + if (audio_coding_->SetDtmfPlayoutStatus(enable) != 0) + { + _engineStatisticsPtr->SetLastError( + VE_AUDIO_CODING_MODULE_ERROR, kTraceWarning, + "SetDtmfPlayoutStatus() failed to set Dtmf playout"); + return -1; + } + return 0; +} + +bool +Channel::DtmfPlayoutStatus() const +{ + return audio_coding_->DtmfPlayoutStatus(); +} + +int Channel::SetSendTelephoneEventPayloadType(unsigned char type) { WEBRTC_TRACE(kTraceInfo, kTraceVoice, VoEId(_instanceId,_channelId), |