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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/IIRDSPKernel.h

Issue 2839063003: Implement tail processing for AudioNodes (Closed)
Patch Set: Make declaration order consistent Created 3 years, 5 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 unified diff | Download patch
OLDNEW
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 #ifndef IIRDSPKernel_h 5 #ifndef IIRDSPKernel_h
6 #define IIRDSPKernel_h 6 #define IIRDSPKernel_h
7 7
8 #include "modules/webaudio/IIRProcessor.h" 8 #include "modules/webaudio/IIRProcessor.h"
9 #include "platform/audio/AudioDSPKernel.h" 9 #include "platform/audio/AudioDSPKernel.h"
10 #include "platform/audio/IIRFilter.h" 10 #include "platform/audio/IIRFilter.h"
(...skipping 14 matching lines...) Expand all
25 25
26 // Get the magnitude and phase response of the filter at the given 26 // Get the magnitude and phase response of the filter at the given
27 // set of frequencies (in Hz). The phase response is in radians. 27 // set of frequencies (in Hz). The phase response is in radians.
28 void GetFrequencyResponse(int n_frequencies, 28 void GetFrequencyResponse(int n_frequencies,
29 const float* frequency_hz, 29 const float* frequency_hz,
30 float* mag_response, 30 float* mag_response,
31 float* phase_response); 31 float* phase_response);
32 32
33 double TailTime() const override; 33 double TailTime() const override;
34 double LatencyTime() const override; 34 double LatencyTime() const override;
35 bool RequiresTailProcessing() const override;
35 36
36 protected: 37 protected:
37 IIRFilter iir_; 38 IIRFilter iir_;
38 39
39 private: 40 private:
40 double tail_time_; 41 double tail_time_;
41 }; 42 };
42 43
43 } // namespace blink 44 } // namespace blink
44 45
45 #endif // IIRDSPKernel_h 46 #endif // IIRDSPKernel_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/GainNode.h ('k') | third_party/WebKit/Source/modules/webaudio/IIRDSPKernel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698