Index: Source/modules/webaudio/WaveShaperProcessor.h |
diff --git a/Source/modules/webaudio/WaveShaperProcessor.h b/Source/modules/webaudio/WaveShaperProcessor.h |
index 54341d5242cb7472889174c85366d922a450f5e7..eab2d702d566fafde1e4e65eac58b9f9b2810322 100644 |
--- a/Source/modules/webaudio/WaveShaperProcessor.h |
+++ b/Source/modules/webaudio/WaveShaperProcessor.h |
@@ -38,6 +38,12 @@ namespace WebCore { |
class WaveShaperProcessor : public AudioDSPKernelProcessor { |
public: |
+ enum OverSampleType { |
+ OverSampleNone, |
+ OverSample2x, |
+ OverSample4x |
+ }; |
+ |
WaveShaperProcessor(float sampleRate, size_t numberOfChannels); |
virtual ~WaveShaperProcessor(); |
@@ -49,10 +55,15 @@ public: |
void setCurve(Float32Array*); |
Float32Array* curve() { return m_curve.get(); } |
+ void setOversample(OverSampleType); |
+ OverSampleType oversample() const { return m_oversample; } |
+ |
private: |
// m_curve represents the non-linear shaping curve. |
RefPtr<Float32Array> m_curve; |
+ OverSampleType m_oversample; |
+ |
// This synchronizes process() with setCurve(). |
mutable Mutex m_processLock; |
}; |