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

Unified Diff: Source/core/platform/audio/Biquad.cpp

Issue 14107015: Rename OS(DARWIN) to OS(MACOSX). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 3 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
« no previous file with comments | « Source/core/platform/audio/Biquad.h ('k') | Source/core/platform/audio/DirectConvolver.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/audio/Biquad.cpp
diff --git a/Source/core/platform/audio/Biquad.cpp b/Source/core/platform/audio/Biquad.cpp
index a9f97601593264e03155d8dac22a6a8f5adf86fd..20c6487a63cfe167774549d4b466792c95532a8b 100644
--- a/Source/core/platform/audio/Biquad.cpp
+++ b/Source/core/platform/audio/Biquad.cpp
@@ -37,7 +37,7 @@
#include "core/platform/audio/DenormalDisabler.h"
#include "wtf/MathExtras.h"
-#if OS(DARWIN)
+#if OS(MACOSX)
#include <Accelerate/Accelerate.h>
#endif
@@ -47,7 +47,7 @@ const int kBufferSize = 1024;
Biquad::Biquad()
{
-#if OS(DARWIN)
+#if OS(MACOSX)
// Allocate two samples more for filter history
m_inputBuffer.allocate(kBufferSize + 2);
m_outputBuffer.allocate(kBufferSize + 2);
@@ -74,7 +74,7 @@ Biquad::~Biquad()
void Biquad::process(const float* sourceP, float* destP, size_t framesToProcess)
{
-#if OS(DARWIN)
+#if OS(MACOSX)
// Use vecLib if available
processFast(sourceP, destP, framesToProcess);
@@ -125,7 +125,7 @@ void Biquad::process(const float* sourceP, float* destP, size_t framesToProcess)
#endif
}
-#if OS(DARWIN)
+#if OS(MACOSX)
// Here we have optimized version using Accelerate.framework
@@ -179,12 +179,12 @@ void Biquad::processSliceFast(double* sourceP, double* destP, double* coefficien
destP[1] = destP[framesToProcess - 1 + 2];
}
-#endif // OS(DARWIN)
+#endif // OS(MACOSX)
void Biquad::reset()
{
-#if OS(DARWIN)
+#if OS(MACOSX)
// Two extra samples for filter history
double* inputP = m_inputBuffer.data();
inputP[0] = 0;
« no previous file with comments | « Source/core/platform/audio/Biquad.h ('k') | Source/core/platform/audio/DirectConvolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698