| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "modules/webaudio/IIRDSPKernel.h" | 5 #include "modules/webaudio/IIRDSPKernel.h" |
| 6 | 6 |
| 7 #include "wtf/MathExtras.h" | 7 #include "platform/wtf/MathExtras.h" |
| 8 | 8 |
| 9 namespace blink { | 9 namespace blink { |
| 10 | 10 |
| 11 void IIRDSPKernel::Process(const float* source, | 11 void IIRDSPKernel::Process(const float* source, |
| 12 float* destination, | 12 float* destination, |
| 13 size_t frames_to_process) { | 13 size_t frames_to_process) { |
| 14 DCHECK(source); | 14 DCHECK(source); |
| 15 DCHECK(destination); | 15 DCHECK(destination); |
| 16 | 16 |
| 17 iir_.Process(source, destination, frames_to_process); | 17 iir_.Process(source, destination, frames_to_process); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // the magnitude of r is greater than or equal to 1, the infinity is the right | 49 // the magnitude of r is greater than or equal to 1, the infinity is the right |
| 50 // answer. (There is no constraint on the IIR filter that it be stable.) | 50 // answer. (There is no constraint on the IIR filter that it be stable.) |
| 51 return std::numeric_limits<double>::infinity(); | 51 return std::numeric_limits<double>::infinity(); |
| 52 } | 52 } |
| 53 | 53 |
| 54 double IIRDSPKernel::LatencyTime() const { | 54 double IIRDSPKernel::LatencyTime() const { |
| 55 return 0; | 55 return 0; |
| 56 } | 56 } |
| 57 | 57 |
| 58 } // namespace blink | 58 } // namespace blink |
| OLD | NEW |