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

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

Issue 1773813007: blink: Rename modules/ method to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-modules: rebase-fixes Created 4 years, 9 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 /* 1 /*
2 * Copyright (C) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // Get the magnitude and phase response of the filter at the given 49 // Get the magnitude and phase response of the filter at the given
50 // set of frequencies (in Hz). The phase response is in radians. 50 // set of frequencies (in Hz). The phase response is in radians.
51 void getFrequencyResponse(int nFrequencies, const float* frequencyHz, float* magResponse, float* phaseResponse); 51 void getFrequencyResponse(int nFrequencies, const float* frequencyHz, float* magResponse, float* phaseResponse);
52 52
53 double tailTime() const override; 53 double tailTime() const override;
54 double latencyTime() const override; 54 double latencyTime() const override;
55 55
56 protected: 56 protected:
57 Biquad m_biquad; 57 Biquad m_biquad;
58 BiquadProcessor* biquadProcessor() { return static_cast<BiquadProcessor*>(pr ocessor()); } 58 BiquadProcessor* getBiquadProcessor() { return static_cast<BiquadProcessor*> (processor()); }
59 59
60 // To prevent audio glitches when parameters are changed, 60 // To prevent audio glitches when parameters are changed,
61 // dezippering is used to slowly change the parameters. 61 // dezippering is used to slowly change the parameters.
62 void updateCoefficientsIfNecessary(int); 62 void updateCoefficientsIfNecessary(int);
63 // Update the biquad cofficients with the given parameters 63 // Update the biquad cofficients with the given parameters
64 void updateCoefficients(int, const float* frequency, const float* Q, const f loat* gain, const float* detune); 64 void updateCoefficients(int, const float* frequency, const float* Q, const f loat* gain, const float* detune);
65 65
66 private: 66 private:
67 // Synchronize process() with getting and setting the filter coefficients. 67 // Synchronize process() with getting and setting the filter coefficients.
68 mutable Mutex m_processLock; 68 mutable Mutex m_processLock;
69 }; 69 };
70 70
71 } // namespace blink 71 } // namespace blink
72 72
73 #endif // BiquadDSPKernel_h 73 #endif // BiquadDSPKernel_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698