Chromium Code Reviews| 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) { |