Remove support for ENABLE_LEGACY_WEB_AUDIO
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 27 Aug 2016 02:01:11 +0000 (02:01 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 27 Aug 2016 02:01:11 +0000 (02:01 +0000)
commit4e15bfa7fdd6e129b6d4f1c87c719fbcd773c51a
tree60b4ee9337014e2b9592144770c1c4742aa8c44e
parent71640141fccb093670cce46d5163aed0b423030e
Remove support for ENABLE_LEGACY_WEB_AUDIO
https://bugs.webkit.org/show_bug.cgi?id=161262

Reviewed by Anders Carlsson.

Source/JavaScriptCore:

* Configurations/FeatureDefines.xcconfig:
Remove ENABLE_LEGACY_WEB_AUDIO

Source/WebCore:

* Configurations/FeatureDefines.xcconfig:
Remove ENABLE_LEGACY_WEB_AUDIO.

* Modules/webaudio/AudioBufferSourceNode.cpp:
(WebCore::AudioBufferSourceNode::noteGrainOn): Deleted.
* Modules/webaudio/AudioBufferSourceNode.h:
* Modules/webaudio/AudioBufferSourceNode.idl:
(WebCore::AudioScheduledSourceNode::noteOn): Deleted.
(WebCore::AudioScheduledSourceNode::noteOff): Deleted.
* Modules/webaudio/AudioScheduledSourceNode.h:
* Modules/webaudio/AudioScheduledSourceNode.cpp:
Remove the looping attribute, as well as the noteOn, noteOff, and noteGrainOn functions.

* Modules/webaudio/AudioContext.idl:
Remove the createGainNode, createDelayNode and createJavaScriptNode functions.

* Modules/webaudio/AudioParam.idl:
Remove the setTargetValueAtTime function.

* Modules/webaudio/BiquadDSPKernel.cpp:
(WebCore::BiquadDSPKernel::updateCoefficientsIfNecessary):
* Modules/webaudio/BiquadFilterNode.cpp:
(WebCore::BiquadFilterNode::type):
(WebCore::BiquadFilterNode::setType):
(WebCore::BiquadFilterNode::getFrequencyResponse):
* Modules/webaudio/BiquadFilterNode.h:
* Modules/webaudio/BiquadFilterNode.idl:
* Modules/webaudio/BiquadProcessor.cpp:
(WebCore::BiquadProcessor::BiquadProcessor):
(WebCore::BiquadProcessor::setType):
(WebCore::BiquadProcessor::getFrequencyResponse):
* Modules/webaudio/BiquadProcessor.h:
(WebCore::BiquadProcessor::type):
* bindings/js/JSBiquadFilterNodeCustom.cpp: Removed.
Rename BiquadProcessor::FilterType to BiquadFilterType and use it
directly from the IDL. Remove legacy filter constants from the IDL
and the need for a custom binding for the type attribute.

* Modules/webaudio/OscillatorNode.cpp:
(WebCore::OscillatorNode::OscillatorNode):
(WebCore::OscillatorNode::setType):
(WebCore::OscillatorNode::setPeriodicWave):
(WebCore::OscillatorNode::type): Deleted.
* Modules/webaudio/OscillatorNode.h:
(WebCore::OscillatorNode::type):
* Modules/webaudio/OscillatorNode.idl:
* Modules/webaudio/PeriodicWave.cpp:
(WebCore::PeriodicWave::createSine):
(WebCore::PeriodicWave::createSquare):
(WebCore::PeriodicWave::createSawtooth):
(WebCore::PeriodicWave::createTriangle):
(WebCore::PeriodicWave::generateBasicWaveform):
* Modules/webaudio/PeriodicWave.h:
* bindings/js/JSOscillatorNodeCustom.cpp: Removed.
Remove noteOn and noteOff functions and the type integer constants.
Remove the need for a custom binding for the type attribute by renaming
the type enum OscillatorNode::Type and putting the enum in the IDL.

* Modules/webaudio/PannerNode.cpp:
(WebCore::PannerNode::PannerNode):
(WebCore::PannerNode::process):
(WebCore::PannerNode::setPanningModel):
(WebCore::PannerNode::distanceModel):
(WebCore::PannerNode::setDistanceModel):
(WebCore::PannerNode::panningModel): Deleted.
* Modules/webaudio/PannerNode.h:
(WebCore::PannerNode::panningModel):
* Modules/webaudio/PannerNode.idl:
* bindings/js/JSPannerNodeCustom.cpp: Removed.
* platform/audio/Distance.cpp:
(WebCore::DistanceEffect::DistanceEffect):
(WebCore::DistanceEffect::gain):
* platform/audio/Distance.h:
(WebCore::DistanceEffect::model):
(WebCore::DistanceEffect::setModel):
* platform/audio/EqualPowerPanner.cpp:
(WebCore::EqualPowerPanner::EqualPowerPanner):
* platform/audio/HRTFPanner.cpp:
(WebCore::HRTFPanner::HRTFPanner):
* platform/audio/Panner.cpp:
(WebCore::Panner::create):
* platform/audio/Panner.h:
(WebCore::Panner::panningModel):
(WebCore::Panner::Panner):
Replace the panning model and distance model integer constants
with IDL enum support, removing the need for a custom binding.
Rename the supporting C++ enums to work with the bindings.

* bindings/js/JSAudioContextCustom.cpp:
(WebCore::constructJSAudioContext):
Remove deprecated way of creating an offline context.

* WebCore.xcodeproj/project.pbxproj:
Update files.

Source/WebKit/mac:

* Configurations/FeatureDefines.xcconfig:
Remove ENABLE_LEGACY_WEB_AUDIO

Source/WebKit2:

* Configurations/FeatureDefines.xcconfig:
Remove ENABLE_LEGACY_WEB_AUDIO.

Tools:

* TestWebKitAPI/Configurations/FeatureDefines.xcconfig:

LayoutTests:

* webaudio/audiobuffersource-loop-points.html:
* webaudio/audiobuffersource-multi-channels.html:
* webaudio/audiobuffersource-playbackState-expected.txt:
* webaudio/audiobuffersource-playbackState.html:
* webaudio/audiobuffersource-playbackrate.html:
* webaudio/audiochannelmerger-stereo.html:
* webaudio/audiochannelsplitter.html:
* webaudio/audionode-connect-order.html:
* webaudio/audionode-expected.txt:
* webaudio/audionode.html:
* webaudio/audioparam-connect-audioratesignal.html:
* webaudio/audioparam-summingjunction.html:
* webaudio/audioprocessingevent.html:
* webaudio/automatic-pull-node.html:
* webaudio/biquad-allpass.html:
* webaudio/biquad-bandpass.html:
* webaudio/biquad-getFrequencyResponse.html:
* webaudio/biquad-highpass.html:
* webaudio/biquad-highshelf.html:
* webaudio/biquad-lowpass.html:
* webaudio/biquad-lowshelf.html:
* webaudio/biquad-notch.html:
* webaudio/biquad-peaking.html:
* webaudio/biquadfilternode-basic-expected.txt:
* webaudio/biquadfilternode-basic.html:
* webaudio/convolution-mono-mono.html:
* webaudio/delaynode-max-default-delay.html:
* webaudio/delaynode-max-nondefault-delay.html:
* webaudio/delaynode-maxdelay.html:
* webaudio/delaynode-scheduling.html:
* webaudio/delaynode.html:
* webaudio/distance-exponential-expected.txt:
* webaudio/distance-exponential.html:
* webaudio/distance-inverse-expected.txt:
* webaudio/distance-inverse.html:
* webaudio/distance-linear-expected.txt:
* webaudio/distance-linear.html:
* webaudio/gain-basic.html:
* webaudio/gain.html:
* webaudio/javascriptaudionode-zero-input-channels.html:
* webaudio/javascriptaudionode.html:
* webaudio/mixing.html:
* webaudio/note-grain-on-play-expected.txt: Removed.
* webaudio/note-grain-on-play.html: Removed.
* webaudio/note-grain-on-timing-expected.txt: Removed.
* webaudio/note-grain-on-timing.html: Removed.
* webaudio/oscillator-basic-expected.txt:
* webaudio/oscillator-basic.html:
* webaudio/oscillator-custom.html:
* webaudio/oscillator-sawtooth.html:
* webaudio/oscillator-sine.html:
* webaudio/oscillator-square.html:
* webaudio/oscillator-triangle.html:
* webaudio/pannernode-basic-expected.txt:
* webaudio/pannernode-basic.html:
* webaudio/resources/audio-testing.js:
* webaudio/resources/audioparam-testing.js:
* webaudio/resources/biquad-testing.js:
* webaudio/resources/distance-model-testing.js:
* webaudio/resources/javascriptaudionode-testing.js:
* webaudio/resources/oscillator-testing.js:
* webaudio/resources/panner-model-testing.js:
* webaudio/sample-accurate-scheduling.html:
* webaudio/stereo2mono-down-mixing.html:
* webaudio/up-mixing-mono-51.html:
* webaudio/up-mixing-mono-stereo.html:
* webaudio/up-mixing-stereo-51.html:
* webaudio/waveshaper.html:
Update tests for removal of ENABLE_LEGACY_WEB_AUDIO.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205065 268f45cc-cd09-0410-ab3c-d52691b4dbfc
115 files changed:
LayoutTests/ChangeLog
LayoutTests/webaudio/audiobuffersource-loop-points.html
LayoutTests/webaudio/audiobuffersource-multi-channels.html
LayoutTests/webaudio/audiobuffersource-playbackState-expected.txt
LayoutTests/webaudio/audiobuffersource-playbackState.html
LayoutTests/webaudio/audiobuffersource-playbackrate.html
LayoutTests/webaudio/audiochannelmerger-stereo.html
LayoutTests/webaudio/audiochannelsplitter.html
LayoutTests/webaudio/audionode-connect-order.html
LayoutTests/webaudio/audionode-expected.txt
LayoutTests/webaudio/audionode.html
LayoutTests/webaudio/audioparam-connect-audioratesignal.html
LayoutTests/webaudio/audioparam-summingjunction.html
LayoutTests/webaudio/audioprocessingevent.html
LayoutTests/webaudio/automatic-pull-node.html
LayoutTests/webaudio/biquad-allpass.html
LayoutTests/webaudio/biquad-bandpass.html
LayoutTests/webaudio/biquad-getFrequencyResponse.html
LayoutTests/webaudio/biquad-highpass.html
LayoutTests/webaudio/biquad-highshelf.html
LayoutTests/webaudio/biquad-lowpass.html
LayoutTests/webaudio/biquad-lowshelf.html
LayoutTests/webaudio/biquad-notch.html
LayoutTests/webaudio/biquad-peaking.html
LayoutTests/webaudio/biquadfilternode-basic-expected.txt
LayoutTests/webaudio/biquadfilternode-basic.html
LayoutTests/webaudio/convolution-mono-mono.html
LayoutTests/webaudio/delaynode-max-default-delay.html
LayoutTests/webaudio/delaynode-max-nondefault-delay.html
LayoutTests/webaudio/delaynode-maxdelay.html
LayoutTests/webaudio/delaynode-scheduling.html
LayoutTests/webaudio/delaynode.html
LayoutTests/webaudio/distance-exponential-expected.txt
LayoutTests/webaudio/distance-exponential.html
LayoutTests/webaudio/distance-inverse-expected.txt
LayoutTests/webaudio/distance-inverse.html
LayoutTests/webaudio/distance-linear-expected.txt
LayoutTests/webaudio/distance-linear.html
LayoutTests/webaudio/gain-basic.html
LayoutTests/webaudio/gain.html
LayoutTests/webaudio/javascriptaudionode-zero-input-channels.html
LayoutTests/webaudio/javascriptaudionode.html
LayoutTests/webaudio/mixing.html
LayoutTests/webaudio/note-grain-on-play-expected.txt [deleted file]
LayoutTests/webaudio/note-grain-on-play.html [deleted file]
LayoutTests/webaudio/note-grain-on-timing-expected.txt [deleted file]
LayoutTests/webaudio/note-grain-on-timing.html [deleted file]
LayoutTests/webaudio/oscillator-basic-expected.txt
LayoutTests/webaudio/oscillator-basic.html
LayoutTests/webaudio/oscillator-custom.html
LayoutTests/webaudio/oscillator-sawtooth.html
LayoutTests/webaudio/oscillator-sine.html
LayoutTests/webaudio/oscillator-square.html
LayoutTests/webaudio/oscillator-triangle.html
LayoutTests/webaudio/pannernode-basic-expected.txt
LayoutTests/webaudio/pannernode-basic.html
LayoutTests/webaudio/resources/audio-testing.js
LayoutTests/webaudio/resources/audioparam-testing.js
LayoutTests/webaudio/resources/biquad-testing.js
LayoutTests/webaudio/resources/distance-model-testing.js
LayoutTests/webaudio/resources/javascriptaudionode-testing.js
LayoutTests/webaudio/resources/oscillator-testing.js
LayoutTests/webaudio/resources/panner-model-testing.js
LayoutTests/webaudio/sample-accurate-scheduling.html
LayoutTests/webaudio/stereo2mono-down-mixing.html
LayoutTests/webaudio/up-mixing-mono-51.html
LayoutTests/webaudio/up-mixing-mono-stereo.html
LayoutTests/webaudio/up-mixing-stereo-51.html
LayoutTests/webaudio/waveshaper.html
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/Configurations/FeatureDefines.xcconfig
Source/WebCore/Modules/webaudio/AudioBufferSourceNode.cpp
Source/WebCore/Modules/webaudio/AudioBufferSourceNode.h
Source/WebCore/Modules/webaudio/AudioBufferSourceNode.idl
Source/WebCore/Modules/webaudio/AudioContext.idl
Source/WebCore/Modules/webaudio/AudioParam.idl
Source/WebCore/Modules/webaudio/AudioScheduledSourceNode.cpp
Source/WebCore/Modules/webaudio/AudioScheduledSourceNode.h
Source/WebCore/Modules/webaudio/BiquadDSPKernel.cpp
Source/WebCore/Modules/webaudio/BiquadFilterNode.cpp
Source/WebCore/Modules/webaudio/BiquadFilterNode.h
Source/WebCore/Modules/webaudio/BiquadFilterNode.idl
Source/WebCore/Modules/webaudio/BiquadProcessor.cpp
Source/WebCore/Modules/webaudio/BiquadProcessor.h
Source/WebCore/Modules/webaudio/OscillatorNode.cpp
Source/WebCore/Modules/webaudio/OscillatorNode.h
Source/WebCore/Modules/webaudio/OscillatorNode.idl
Source/WebCore/Modules/webaudio/PannerNode.cpp
Source/WebCore/Modules/webaudio/PannerNode.h
Source/WebCore/Modules/webaudio/PannerNode.idl
Source/WebCore/Modules/webaudio/PeriodicWave.cpp
Source/WebCore/Modules/webaudio/PeriodicWave.h
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/bindings/js/JSAudioContextCustom.cpp
Source/WebCore/bindings/js/JSBiquadFilterNodeCustom.cpp [deleted file]
Source/WebCore/bindings/js/JSOscillatorNodeCustom.cpp [deleted file]
Source/WebCore/bindings/js/JSPannerNodeCustom.cpp [deleted file]
Source/WebCore/platform/audio/Distance.cpp
Source/WebCore/platform/audio/Distance.h
Source/WebCore/platform/audio/EqualPowerPanner.cpp
Source/WebCore/platform/audio/HRTFPanner.cpp
Source/WebCore/platform/audio/Panner.cpp
Source/WebCore/platform/audio/Panner.h
Source/WebKit/mac/ChangeLog
Source/WebKit/mac/Configurations/FeatureDefines.xcconfig
Source/WebKit2/ChangeLog
Source/WebKit2/Configurations/FeatureDefines.xcconfig
Source/cmake/OptionsGTK.cmake
Source/cmake/OptionsMac.cmake
Source/cmake/WebKitFeatures.cmake
Tools/ChangeLog
Tools/TestWebKitAPI/Configurations/FeatureDefines.xcconfig