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

Unified Diff: webrtc/common_audio/wav_file.cc

Issue 1226093007: Allow more than 2 input channels in AudioProcessing. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix mac build Created 5 years, 5 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/common_audio/wav_file.cc
diff --git a/webrtc/common_audio/wav_file.cc b/webrtc/common_audio/wav_file.cc
index 995043461a18a692745ce747dab7afa4c9a8d9cf..a0c792c54a6fab246dd66afca5af860cdb53a7f8 100644
--- a/webrtc/common_audio/wav_file.cc
+++ b/webrtc/common_audio/wav_file.cc
@@ -123,11 +123,6 @@ void WavWriter::WriteSamples(const int16_t* samples, size_t num_samples) {
num_samples_ += static_cast<uint32_t>(written);
CHECK(written <= std::numeric_limits<uint32_t>::max() ||
num_samples_ >= written); // detect uint32_t overflow
- CHECK(CheckWavParameters(num_channels_,
aluebs-webrtc 2015/07/14 23:12:42 Why do you need to remove this?
mgraczyk 2015/07/15 01:12:45 My comments were left behind on a previous patch.
aluebs-webrtc 2015/07/15 18:04:05 But do we want to write a frame without all sample
mgraczyk 2015/07/15 20:03:19 The WriteSamples(float*...) passes partial frames
aluebs-webrtc 2015/07/15 21:29:16 Ok, agreed.
- sample_rate_,
- kWavFormat,
- kBytesPerSample,
- num_samples_));
}
void WavWriter::WriteSamples(const float* samples, size_t num_samples) {

Powered by Google App Engine
This is Rietveld 408576698