summaryrefslogtreecommitdiffstats
path: root/plugins/audio_webrtc/audio_webrtc_transport.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/audio_webrtc/audio_webrtc_transport.cxx')
-rwxr-xr-xplugins/audio_webrtc/audio_webrtc_transport.cxx34
1 files changed, 17 insertions, 17 deletions
diff --git a/plugins/audio_webrtc/audio_webrtc_transport.cxx b/plugins/audio_webrtc/audio_webrtc_transport.cxx
index 470e4e7..a9b50ed 100755
--- a/plugins/audio_webrtc/audio_webrtc_transport.cxx
+++ b/plugins/audio_webrtc/audio_webrtc_transport.cxx
@@ -1,17 +1,17 @@
/* Copyright (C) 2012 Doubango Telecom <http://www.doubango.org>
-*
+*
* This file is part of Open Source Doubango Framework.
*
* DOUBANGO is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
-*
+*
* DOUBANGO is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
-*
+*
* You should have received a copy of the GNU General Public License
* along with DOUBANGO.
*/
@@ -33,15 +33,15 @@ AudioTransportImpl::AudioTransportImpl(AudioDeviceModule* audioDevice) :
_microphoneBoost(false),
_microphoneAGC(false),
_loopBackMeasurements(false),
- _consumer(tsk_null),
- _producer(tsk_null)
+ _consumer(tsk_null),
+ _producer(tsk_null)
{
-
+
}
AudioTransportImpl::~AudioTransportImpl()
{
-
+
}
void AudioTransportImpl::SetFullDuplex(bool enable)
@@ -60,11 +60,11 @@ WebRtc_Word32 AudioTransportImpl::RecordedDataIsAvailable(
const WebRtc_UWord32 currentMicLevel,
WebRtc_UWord32& newMicLevel)
{
- if(!_producer){
- DOUBANGO_AUDIO_WEBRTC_DEBUG_ERROR("No wrapped producer");
- return 0;
- }
- return audio_producer_webrtc_handle_data_10ms(_producer, audioSamples, nSamples, nBytesPerSample, samplesPerSec, nChannels);
+ if(!_producer) {
+ DOUBANGO_AUDIO_WEBRTC_DEBUG_ERROR("No wrapped producer");
+ return 0;
+ }
+ return audio_producer_webrtc_handle_data_10ms(_producer, audioSamples, nSamples, nBytesPerSample, samplesPerSec, nChannels);
}
@@ -76,9 +76,9 @@ WebRtc_Word32 AudioTransportImpl::NeedMorePlayData(
void* audioSamples,
WebRtc_UWord32& nSamplesOut)
{
- if(!_consumer){
- DOUBANGO_AUDIO_WEBRTC_DEBUG_ERROR("No wrapped consumer");
- return 0;
- }
- return audio_consumer_webrtc_get_data_10ms(_consumer, audioSamples, nSamples, nBytesPerSample, nChannels, samplesPerSec, nSamplesOut);
+ if(!_consumer) {
+ DOUBANGO_AUDIO_WEBRTC_DEBUG_ERROR("No wrapped consumer");
+ return 0;
+ }
+ return audio_consumer_webrtc_get_data_10ms(_consumer, audioSamples, nSamples, nBytesPerSample, nChannels, samplesPerSec, nSamplesOut);
} \ No newline at end of file
OpenPOWER on IntegriCloud