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

Unified Diff: webrtc/modules/utility/source/file_recorder_impl.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/utility/source/file_recorder_impl.cc
diff --git a/webrtc/modules/utility/source/file_recorder_impl.cc b/webrtc/modules/utility/source/file_recorder_impl.cc
index 0a2c9a088645469da198d31eab36d1c15c8efe23..e86afc69722ab7f06d45e4c90e9e231cebd89348 100644
--- a/webrtc/modules/utility/source/file_recorder_impl.cc
+++ b/webrtc/modules/utility/source/file_recorder_impl.cc
@@ -227,11 +227,7 @@ int32_t FileRecorderImpl::RecordAudioToFile(
// will be available. Wait until then.
if (encodedLenInBytes)
{
- uint16_t msOfData =
- ptrAudioFrame->samples_per_channel_ /
- uint16_t(ptrAudioFrame->sample_rate_hz_ / 1000);
- if (WriteEncodedAudioData(_audioBuffer, encodedLenInBytes, msOfData,
- playoutTS) == -1)
+ if (WriteEncodedAudioData(_audioBuffer, encodedLenInBytes) == -1)
{
return -1;
}
@@ -264,11 +260,8 @@ int32_t FileRecorderImpl::codec_info(CodecInst& codecInst) const
return 0;
}
-int32_t FileRecorderImpl::WriteEncodedAudioData(
- const int8_t* audioBuffer,
- size_t bufferLength,
- uint16_t /*millisecondsOfData*/,
- const TickTime* /*playoutTS*/)
+int32_t FileRecorderImpl::WriteEncodedAudioData(const int8_t* audioBuffer,
+ size_t bufferLength)
{
return _moduleFile->IncomingAudioData(audioBuffer, bufferLength);
}

Powered by Google App Engine
This is Rietveld 408576698