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

Unified Diff: third_party/WebKit/Source/platform/audio/HRTFPanner.cpp

Issue 2803733002: Convert ASSERT(foo) to DCHECK(foo) in platform/audio (Closed)
Patch Set: Mechanical change from ASSERT(foo) to DCHECK(foo) Created 3 years, 8 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: third_party/WebKit/Source/platform/audio/HRTFPanner.cpp
diff --git a/third_party/WebKit/Source/platform/audio/HRTFPanner.cpp b/third_party/WebKit/Source/platform/audio/HRTFPanner.cpp
index 60452b4a39d2621c920af3dab61e2b2cdabfeff9..0861ebc23ae511f239daf24310dabf9bf9c14ebf 100644
--- a/third_party/WebKit/Source/platform/audio/HRTFPanner.cpp
+++ b/third_party/WebKit/Source/platform/audio/HRTFPanner.cpp
@@ -60,7 +60,7 @@ HRTFPanner::HRTFPanner(float sampleRate, HRTFDatabaseLoader* databaseLoader)
m_tempR1(AudioUtilities::kRenderQuantumFrames),
m_tempL2(AudioUtilities::kRenderQuantumFrames),
m_tempR2(AudioUtilities::kRenderQuantumFrames) {
- ASSERT(databaseLoader);
+ DCHECK(databaseLoader);
}
HRTFPanner::~HRTFPanner() {}
@@ -75,7 +75,7 @@ size_t HRTFPanner::fftSizeForSampleRate(float sampleRate) {
// of two that is greater than or equal the resampled length. This power of
// two is doubled to get the actual FFT size.
- ASSERT(AudioUtilities::isValidAudioBufferSampleRate(sampleRate));
+ DCHECK(AudioUtilities::isValidAudioBufferSampleRate(sampleRate));
int truncatedImpulseLength = 256;
double sampleRateRatio = sampleRate / 44100;
@@ -125,11 +125,11 @@ void HRTFPanner::pan(double desiredAzimuth,
unsigned numInputChannels = inputBus ? inputBus->numberOfChannels() : 0;
bool isInputGood = inputBus && numInputChannels >= 1 && numInputChannels <= 2;
- ASSERT(isInputGood);
+ DCHECK(isInputGood);
bool isOutputGood = outputBus && outputBus->numberOfChannels() == 2 &&
framesToProcess <= outputBus->length();
- ASSERT(isOutputGood);
+ DCHECK(isOutputGood);
if (!isInputGood || !isOutputGood) {
if (outputBus)
@@ -148,7 +148,7 @@ void HRTFPanner::pan(double desiredAzimuth,
double azimuth = -desiredAzimuth;
bool isAzimuthGood = azimuth >= -180.0 && azimuth <= 180.0;
- ASSERT(isAzimuthGood);
+ DCHECK(isAzimuthGood);
if (!isAzimuthGood) {
outputBus->zero();
return;
@@ -234,7 +234,7 @@ void HRTFPanner::pan(double desiredAzimuth,
frameDelayL2, frameDelayR2);
bool areKernelsGood = kernelL1 && kernelR1 && kernelL2 && kernelR2;
- ASSERT(areKernelsGood);
+ DCHECK(areKernelsGood);
if (!areKernelsGood) {
outputBus->zero();
return;
« no previous file with comments | « third_party/WebKit/Source/platform/audio/HRTFKernel.cpp ('k') | third_party/WebKit/Source/platform/audio/IIRFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698