This source file includes following definitions.
- wrap
#include "config.h"
#if ENABLE(WEB_AUDIO)
#include "V8AudioNode.h"
#include "V8AnalyserNode.h"
#include "V8AudioBufferSourceNode.h"
#include "V8AudioDestinationNode.h"
#include "V8BiquadFilterNode.h"
#include "V8ChannelMergerNode.h"
#include "V8ChannelSplitterNode.h"
#include "V8ConvolverNode.h"
#include "V8DelayNode.h"
#include "V8DynamicsCompressorNode.h"
#include "V8GainNode.h"
#include "V8MediaElementAudioSourceNode.h"
#include "V8MediaStreamAudioDestinationNode.h"
#include "V8MediaStreamAudioSourceNode.h"
#include "V8OscillatorNode.h"
#include "V8PannerNode.h"
#include "V8ScriptProcessorNode.h"
#include "V8WaveShaperNode.h"
#include "bindings/v8/V8Binding.h"
#include "modules/webaudio/AnalyserNode.h"
#include "modules/webaudio/AudioBufferSourceNode.h"
#include "modules/webaudio/AudioDestinationNode.h"
#include "modules/webaudio/AudioNode.h"
#include "modules/webaudio/BiquadFilterNode.h"
#include "modules/webaudio/ChannelMergerNode.h"
#include "modules/webaudio/ChannelSplitterNode.h"
#include "modules/webaudio/ConvolverNode.h"
#include "modules/webaudio/DelayNode.h"
#include "modules/webaudio/DynamicsCompressorNode.h"
#include "modules/webaudio/GainNode.h"
#include "modules/webaudio/MediaElementAudioSourceNode.h"
#include "modules/webaudio/MediaStreamAudioDestinationNode.h"
#include "modules/webaudio/MediaStreamAudioSourceNode.h"
#include "modules/webaudio/OscillatorNode.h"
#include "modules/webaudio/PannerNode.h"
#include "modules/webaudio/ScriptProcessorNode.h"
#include "modules/webaudio/WaveShaperNode.h"
namespace WebCore {
v8::Handle<v8::Object> wrap(AudioNode* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
{
ASSERT(impl);
switch (impl->nodeType()) {
case AudioNode::NodeTypeDestination:
return wrap(static_cast<AudioDestinationNode*>(impl), creationContext, isolate);
case AudioNode::NodeTypeOscillator:
return wrap(static_cast<OscillatorNode*>(impl), creationContext, isolate);
case AudioNode::NodeTypeAudioBufferSource:
return wrap(static_cast<AudioBufferSourceNode*>(impl), creationContext, isolate);
case AudioNode::NodeTypeMediaElementAudioSource:
return wrap(static_cast<MediaElementAudioSourceNode*>(impl), creationContext, isolate);
case AudioNode::NodeTypeMediaStreamAudioDestination:
return wrap(static_cast<MediaStreamAudioDestinationNode*>(impl), creationContext, isolate);
case AudioNode::NodeTypeMediaStreamAudioSource:
return wrap(static_cast<MediaStreamAudioSourceNode*>(impl), creationContext, isolate);
case AudioNode::NodeTypeJavaScript:
return wrap(static_cast<ScriptProcessorNode*>(impl), creationContext, isolate);
case AudioNode::NodeTypeBiquadFilter:
return wrap(static_cast<BiquadFilterNode*>(impl), creationContext, isolate);
case AudioNode::NodeTypePanner:
return wrap(static_cast<PannerNode*>(impl), creationContext, isolate);
case AudioNode::NodeTypeConvolver:
return wrap(static_cast<ConvolverNode*>(impl), creationContext, isolate);
case AudioNode::NodeTypeDelay:
return wrap(static_cast<DelayNode*>(impl), creationContext, isolate);
case AudioNode::NodeTypeGain:
return wrap(static_cast<GainNode*>(impl), creationContext, isolate);
case AudioNode::NodeTypeChannelSplitter:
return wrap(static_cast<ChannelSplitterNode*>(impl), creationContext, isolate);
case AudioNode::NodeTypeChannelMerger:
return wrap(static_cast<ChannelMergerNode*>(impl), creationContext, isolate);
case AudioNode::NodeTypeAnalyser:
return wrap(static_cast<AnalyserNode*>(impl), creationContext, isolate);
case AudioNode::NodeTypeDynamicsCompressor:
return wrap(static_cast<DynamicsCompressorNode*>(impl), creationContext, isolate);
case AudioNode::NodeTypeWaveShaper:
return wrap(static_cast<WaveShaperNode*>(impl), creationContext, isolate);
default:
ASSERT_NOT_REACHED();
break;
}
return V8AudioNode::createWrapper(impl, creationContext, isolate);
}
}
#endif