Index: Source/modules/webaudio/PannerNode.h |
diff --git a/Source/modules/webaudio/PannerNode.h b/Source/modules/webaudio/PannerNode.h |
index 3f5ef90618a2ba36a15dfe43c0675e7e40552d7f..2a29d01f6bdbfe4cd74cf4abf4e51118ca50a1c8 100644 |
--- a/Source/modules/webaudio/PannerNode.h |
+++ b/Source/modules/webaudio/PannerNode.h |
@@ -116,6 +116,7 @@ public: |
double coneOuterGain() const { return m_coneEffect.outerGain(); } |
void setConeOuterGain(double angle) { m_coneEffect.setOuterGain(angle); } |
+ // It must be called on audio thread, currently called only process() in AudioBufferSourceNode. |
double dopplerRate(); |
virtual double tailTime() const OVERRIDE { return m_panner ? m_panner->tailTime() : 0; } |
@@ -145,6 +146,7 @@ private: |
OwnPtr<Panner> m_panner; |
unsigned m_panningModel; |
+ unsigned m_distanceModel; |
// Current source location information |
FloatPoint3D m_position; |
@@ -176,8 +178,8 @@ private: |
// AudioContext's connection count |
unsigned m_connectionCount; |
- // Synchronize process() and setPanningModel() which can change the panner. |
- mutable Mutex m_pannerLock; |
+ // Synchronize process() with setting of the panning model, distance model and caching of the source location/orientation info. |
+ mutable Mutex m_processLock; |
}; |
} // namespace WebCore |