Index: webrtc/common_audio/channel_buffer.cc |
diff --git a/webrtc/common_audio/channel_buffer.cc b/webrtc/common_audio/channel_buffer.cc |
index 44520c6100bc8e222d89b37db929942b51a723bd..349d4245ccdb6e472db3cb60ee3a951c1e333b3b 100644 |
--- a/webrtc/common_audio/channel_buffer.cc |
+++ b/webrtc/common_audio/channel_buffer.cc |
@@ -10,6 +10,8 @@ |
#include "webrtc/common_audio/channel_buffer.h" |
+#include "webrtc/base/checks.h" |
+ |
namespace webrtc { |
IFChannelBuffer::IFChannelBuffer(size_t num_frames, |
@@ -44,7 +46,7 @@ const ChannelBuffer<float>* IFChannelBuffer::fbuf_const() const { |
void IFChannelBuffer::RefreshF() const { |
if (!fvalid_) { |
- assert(ivalid_); |
+ RTC_DCHECK(ivalid_); |
const int16_t* const* int_channels = ibuf_.channels(); |
float* const* float_channels = fbuf_.channels(); |
for (size_t i = 0; i < ibuf_.num_channels(); ++i) { |
@@ -58,7 +60,7 @@ void IFChannelBuffer::RefreshF() const { |
void IFChannelBuffer::RefreshI() const { |
if (!ivalid_) { |
- assert(fvalid_); |
+ RTC_DCHECK(fvalid_); |
int16_t* const* int_channels = ibuf_.channels(); |
const float* const* float_channels = fbuf_.channels(); |
for (size_t i = 0; i < ibuf_.num_channels(); ++i) { |