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

Unified Diff: Source/modules/webaudio/OscillatorNode.h

Issue 18182009: WaveTable name has changed to PeriodicWave (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix global constructors test Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/webaudio/AudioContext.idl ('k') | Source/modules/webaudio/OscillatorNode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/OscillatorNode.h
diff --git a/Source/modules/webaudio/OscillatorNode.h b/Source/modules/webaudio/OscillatorNode.h
index 742a77ff41504dff9ae024035d409ed2fed4fbf0..51701eba85726c4d043d8d0dae90d26b38408cc5 100644
--- a/Source/modules/webaudio/OscillatorNode.h
+++ b/Source/modules/webaudio/OscillatorNode.h
@@ -36,7 +36,7 @@
namespace WebCore {
class AudioContext;
-class WaveTable;
+class PeriodicWave;
// OscillatorNode is an audio generator of periodic waveforms.
@@ -68,7 +68,7 @@ public:
AudioParam* frequency() { return m_frequency.get(); }
AudioParam* detune() { return m_detune.get(); }
- void setWaveTable(WaveTable*);
+ void setPeriodicWave(PeriodicWave*);
private:
OscillatorNode(AudioContext*, float sampleRate);
@@ -100,13 +100,13 @@ private:
AudioFloatArray m_phaseIncrements;
AudioFloatArray m_detuneValues;
- RefPtr<WaveTable> m_waveTable;
+ RefPtr<PeriodicWave> m_periodicWave;
// 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;
+ static PeriodicWave* s_periodicWaveSine;
+ static PeriodicWave* s_periodicWaveSquare;
+ static PeriodicWave* s_periodicWaveSawtooth;
+ static PeriodicWave* s_periodicWaveTriangle;
};
} // namespace WebCore
« no previous file with comments | « Source/modules/webaudio/AudioContext.idl ('k') | Source/modules/webaudio/OscillatorNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698