summaryrefslogtreecommitdiff
path: root/voice_engine/transmit_mixer.cc
diff options
context:
space:
mode:
authorhenrika@webrtc.org <henrika@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-04-17 10:45:01 +0000
committerhenrika@webrtc.org <henrika@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-04-17 10:45:01 +0000
commit692224a58367e945336c7fd62376fcfa54497437 (patch)
treea09b54ed118a49e5659a95fbb0cb0107715c27cc /voice_engine/transmit_mixer.cc
parent66ccaffbf91ffd265380c16e23eed4bcc2d1b505 (diff)
downloadwebrtc-692224a58367e945336c7fd62376fcfa54497437.tar.gz
Removes parts of the VoEBase sub API as part of a clean-up operation where the goal is to remove unused APIs.
BUG=3206 R=henrik.lundin@webrtc.org, juberti@webrtc.org, niklas.enbom@webrtc.org Review URL: https://webrtc-codereview.appspot.com/12019005 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@5928 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'voice_engine/transmit_mixer.cc')
-rw-r--r--voice_engine/transmit_mixer.cc13
1 files changed, 4 insertions, 9 deletions
diff --git a/voice_engine/transmit_mixer.cc b/voice_engine/transmit_mixer.cc
index 3893da36..d2467cf9 100644
--- a/voice_engine/transmit_mixer.cc
+++ b/voice_engine/transmit_mixer.cc
@@ -421,10 +421,7 @@ TransmitMixer::DemuxAndMix()
it.Increment())
{
Channel* channelPtr = it.GetChannel();
- if (channelPtr->InputIsOnHold())
- {
- channelPtr->UpdateLocalTimeStamp();
- } else if (channelPtr->Sending())
+ if (channelPtr->Sending())
{
// Demultiplex makes a copy of its input.
channelPtr->Demultiplex(_audioFrame);
@@ -440,9 +437,7 @@ void TransmitMixer::DemuxAndMix(const int voe_channels[],
voe::ChannelOwner ch = _channelManagerPtr->GetChannel(voe_channels[i]);
voe::Channel* channel_ptr = ch.channel();
if (channel_ptr) {
- if (channel_ptr->InputIsOnHold()) {
- channel_ptr->UpdateLocalTimeStamp();
- } else if (channel_ptr->Sending()) {
+ if (channel_ptr->Sending()) {
// Demultiplex makes a copy of its input.
channel_ptr->Demultiplex(_audioFrame);
channel_ptr->PrepareEncodeAndSend(_audioFrame.sample_rate_hz_);
@@ -461,7 +456,7 @@ TransmitMixer::EncodeAndSend()
it.Increment())
{
Channel* channelPtr = it.GetChannel();
- if (channelPtr->Sending() && !channelPtr->InputIsOnHold())
+ if (channelPtr->Sending())
{
channelPtr->EncodeAndSend();
}
@@ -474,7 +469,7 @@ void TransmitMixer::EncodeAndSend(const int voe_channels[],
for (int i = 0; i < number_of_voe_channels; ++i) {
voe::ChannelOwner ch = _channelManagerPtr->GetChannel(voe_channels[i]);
voe::Channel* channel_ptr = ch.channel();
- if (channel_ptr && channel_ptr->Sending() && !channel_ptr->InputIsOnHold())
+ if (channel_ptr && channel_ptr->Sending())
channel_ptr->EncodeAndSend();
}
}