summaryrefslogtreecommitdiff
path: root/Source/WebCore/Modules/webaudio/Oscillator.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/Modules/webaudio/Oscillator.h')
-rw-r--r--Source/WebCore/Modules/webaudio/Oscillator.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/WebCore/Modules/webaudio/Oscillator.h b/Source/WebCore/Modules/webaudio/Oscillator.h
index 2158a827a..127b31b2d 100644
--- a/Source/WebCore/Modules/webaudio/Oscillator.h
+++ b/Source/WebCore/Modules/webaudio/Oscillator.h
@@ -99,6 +99,12 @@ private:
AudioFloatArray m_detuneValues;
RefPtr<WaveTable> m_waveTable;
+
+ // Cache the wave tables for different waveform types, except CUSTOM.
+ static WaveTable* s_waveTableSine;
+ static WaveTable* s_waveTableSquare;
+ static WaveTable* s_waveTableSawtooth;
+ static WaveTable* s_waveTableTriangle;
};
} // namespace WebCore