From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/Modules/webaudio/WaveShaperNode.h | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'Source/WebCore/Modules/webaudio/WaveShaperNode.h') diff --git a/Source/WebCore/Modules/webaudio/WaveShaperNode.h b/Source/WebCore/Modules/webaudio/WaveShaperNode.h index cb65372a1..773c04fc0 100644 --- a/Source/WebCore/Modules/webaudio/WaveShaperNode.h +++ b/Source/WebCore/Modules/webaudio/WaveShaperNode.h @@ -22,38 +22,35 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef WaveShaperNode_h -#define WaveShaperNode_h +#pragma once #include "AudioBasicProcessorNode.h" -#include "BiquadProcessor.h" #include "WaveShaperProcessor.h" #include namespace WebCore { - -class WaveShaperNode : public AudioBasicProcessorNode { + +class WaveShaperNode final : public AudioBasicProcessorNode { public: - static PassRefPtr create(AudioContext* context) + static Ref create(AudioContext& context) { - return adoptRef(new WaveShaperNode(context)); + return adoptRef(*new WaveShaperNode(context)); } // setCurve() is called on the main thread. - void setCurve(Float32Array*); + void setCurve(Float32Array&); Float32Array* curve(); - void setOversample(const String& , ExceptionCode&); - String oversample() const; + enum class OverSampleType { None, _2x, _4x }; + void setOversample(OverSampleType); + OverSampleType oversample() const; double latency() const { return latencyTime(); } private: - explicit WaveShaperNode(AudioContext*); + explicit WaveShaperNode(AudioContext&); WaveShaperProcessor* waveShaperProcessor() { return static_cast(processor()); } }; } // namespace WebCore - -#endif // WaveShaperNode_h -- cgit v1.2.1