| Index: Source/modules/webaudio/AudioContext.h
|
| diff --git a/Source/modules/webaudio/AudioContext.h b/Source/modules/webaudio/AudioContext.h
|
| index 5fe579dfa8adf1334405816f859f0b20c6dfdb90..51ac3ef2afa69a2e7a7fbfe4cde9b9b286344531 100644
|
| --- a/Source/modules/webaudio/AudioContext.h
|
| +++ b/Source/modules/webaudio/AudioContext.h
|
| @@ -85,6 +85,8 @@ public:
|
| virtual ~AudioContext();
|
|
|
| bool isInitialized() const;
|
| + // The constructor of an AudioNode must call this to initialize the context.
|
| + void lazyInitialize();
|
|
|
| bool isOfflineContext() { return m_isOfflineContext; }
|
|
|
| @@ -245,7 +247,6 @@ protected:
|
| private:
|
| void constructCommon();
|
|
|
| - void lazyInitialize();
|
| void uninitialize();
|
|
|
| // ExecutionContext calls stop twice.
|
| @@ -258,6 +259,7 @@ private:
|
| void scheduleNodeDeletion();
|
| static void deleteMarkedNodesDispatch(void* userData);
|
|
|
| + // Set to true when the destination node has been initialized and is ready to process data.
|
| bool m_isInitialized;
|
| bool m_isAudioThreadFinished;
|
|
|
|
|