-
crogers@google.com authored
https://bugs.webkit.org/show_bug.cgi?id=82414 Oscillator represents an audio source generating a periodic waveform. It can be set to a few commonly used waveforms. Additionally, it can be set to an arbitrary periodic waveform through the use of a WaveTable object. Reviewed by Kenneth Russell. Tests: webaudio/oscillator-custom.html webaudio/oscillator-sawtooth.html webaudio/oscillator-sine.html webaudio/oscillator-square.html webaudio/oscillator-triangle.html * DerivedSources.make: * GNUmakefile.list.am: Add Oscillator and WaveTable to build files. * Modules/webaudio/AudioContext.cpp: (WebCore::AudioContext::createOscillator): (WebCore): (WebCore::AudioContext::createWaveTable): * Modules/webaudio/AudioContext.h: Add create methods for Oscillator and WaveTable. (WebCore): (AudioContext): * Modules/webaudio/AudioContext.idl: * Modules/webaudio/AudioNode.h: * Modules/webaudio/Oscillator.cpp: Added. (WebCore): (...
f8a74108