Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(952)

Unified Diff: webrtc/modules/audio_device/audio_device_buffer.cc

Issue 1172163004: Reformat existing code. There should be no functional effects. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_device/audio_device_buffer.cc
diff --git a/webrtc/modules/audio_device/audio_device_buffer.cc b/webrtc/modules/audio_device/audio_device_buffer.cc
index 18a242f8e03e41568833684bc4ae969f6473d433..12b28b3ab3f7cafaa9ce9b568864d6f69430d66c 100644
--- a/webrtc/modules/audio_device/audio_device_buffer.cc
+++ b/webrtc/modules/audio_device/audio_device_buffer.cc
@@ -406,12 +406,6 @@ int32_t AudioDeviceBuffer::SetRecordedBuffer(const void* audioBuffer,
return -1;
}
- if (nSamples != _recSamples)
- {
- WEBRTC_TRACE(kTraceWarning, kTraceAudioDevice, _id, "invalid number of recorded samples (%d)", nSamples);
- return -1;
- }
-
if (_recChannel == AudioDeviceModule::kChannelBoth)
{
// (default) copy the complete input buffer to the local buffer
@@ -576,8 +570,9 @@ int32_t AudioDeviceBuffer::GetPlayoutData(void* audioBuffer)
if (_playSize > kMaxBufferSizeBytes)
{
- WEBRTC_TRACE(kTraceError, kTraceUtility, _id, "_playSize %i exceeds "
- "kMaxBufferSizeBytes in AudioDeviceBuffer::GetPlayoutData", _playSize);
+ WEBRTC_TRACE(kTraceError, kTraceUtility, _id,
+ "_playSize %i exceeds kMaxBufferSizeBytes in "
+ "AudioDeviceBuffer::GetPlayoutData", _playSize);
assert(false);
return -1;
}

Powered by Google App Engine
This is Rietveld 408576698