| Index: Source/modules/webaudio/AudioParam.h
|
| diff --git a/Source/modules/webaudio/AudioParam.h b/Source/modules/webaudio/AudioParam.h
|
| index e1c0444809a539ead041f54c5ad52dcbfbbe9f5d..ee3dbf11b3212fb5f5b3a51b9b3dc195170e6dd1 100644
|
| --- a/Source/modules/webaudio/AudioParam.h
|
| +++ b/Source/modules/webaudio/AudioParam.h
|
| @@ -31,7 +31,7 @@
|
|
|
| #include "bindings/core/v8/ScriptWrappable.h"
|
| #include "core/dom/DOMTypedArray.h"
|
| -#include "modules/webaudio/AudioContext.h"
|
| +#include "modules/webaudio/AbstractAudioContext.h"
|
| #include "modules/webaudio/AudioParamTimeline.h"
|
| #include "modules/webaudio/AudioSummingJunction.h"
|
| #include "wtf/PassRefPtr.h"
|
| @@ -54,13 +54,13 @@ public:
|
| static const double DefaultSmoothingConstant;
|
| static const double SnapThreshold;
|
|
|
| - static PassRefPtr<AudioParamHandler> create(AudioContext& context, double defaultValue)
|
| + static PassRefPtr<AudioParamHandler> create(AbstractAudioContext& context, double defaultValue)
|
| {
|
| return adoptRef(new AudioParamHandler(context, defaultValue));
|
| }
|
| DECLARE_TRACE();
|
| // This should be used only in audio rendering thread.
|
| - AudioContext* context() const;
|
| + AbstractAudioContext* context() const;
|
|
|
| // AudioSummingJunction
|
| void didUpdate() override { }
|
| @@ -100,7 +100,7 @@ public:
|
| void disconnect(AudioNodeOutput&);
|
|
|
| private:
|
| - AudioParamHandler(AudioContext& context, double defaultValue)
|
| + AudioParamHandler(AbstractAudioContext& context, double defaultValue)
|
| : AudioSummingJunction(context.deferredTaskHandler())
|
| , m_value(defaultValue)
|
| , m_defaultValue(defaultValue)
|
| @@ -121,19 +121,19 @@ private:
|
|
|
| // We can't make this Persistent because of a reference cycle. It's safe to
|
| // access this field only when we're rendering audio.
|
| - AudioContext& m_context;
|
| + AbstractAudioContext& m_context;
|
| };
|
|
|
| // AudioParam class represents web-exposed AudioParam interface.
|
| class AudioParam final : public GarbageCollectedFinalized<AudioParam>, public ScriptWrappable {
|
| DEFINE_WRAPPERTYPEINFO();
|
| public:
|
| - static AudioParam* create(AudioContext&, double defaultValue);
|
| + static AudioParam* create(AbstractAudioContext&, double defaultValue);
|
| DECLARE_TRACE();
|
| // |handler| always returns a valid object.
|
| AudioParamHandler& handler() const { return *m_handler; }
|
| // |context| always returns a valid object.
|
| - AudioContext* context() const { return m_context; }
|
| + AbstractAudioContext* context() const { return m_context; }
|
|
|
| float value() const;
|
| void setValue(float);
|
| @@ -146,10 +146,10 @@ public:
|
| void cancelScheduledValues(double startTime, ExceptionState&);
|
|
|
| private:
|
| - AudioParam(AudioContext&, double defaultValue);
|
| + AudioParam(AbstractAudioContext&, double defaultValue);
|
|
|
| RefPtr<AudioParamHandler> m_handler;
|
| - Member<AudioContext> m_context;
|
| + Member<AbstractAudioContext> m_context;
|
| };
|
|
|
| } // namespace blink
|
|
|