| Index: third_party/WebKit/Source/modules/webaudio/AudioListener.h
|
| diff --git a/third_party/WebKit/Source/modules/webaudio/AudioListener.h b/third_party/WebKit/Source/modules/webaudio/AudioListener.h
|
| index d41a614effea6d942aad989d83c2c411083d9495..457090e49fba4ab81d4d7727f33b6761916b0d7c 100644
|
| --- a/third_party/WebKit/Source/modules/webaudio/AudioListener.h
|
| +++ b/third_party/WebKit/Source/modules/webaudio/AudioListener.h
|
| @@ -73,6 +73,8 @@ public:
|
| // PannerNodes if necessary.
|
| void updateState();
|
|
|
| + bool isListenerDirty() const { return m_isListenerDirty; }
|
| +
|
| const FloatPoint3D position() const
|
| {
|
| return FloatPoint3D(
|
| @@ -175,6 +177,11 @@ private:
|
| // Last time that the automations were updated.
|
| double m_lastUpdateTime;
|
|
|
| + // Set every rendering quantum if the listener has moved in any way
|
| + // (position, forward, or up). This should only be read or written to from
|
| + // the audio thread.
|
| + bool m_isListenerDirty;
|
| +
|
| void updateValuesIfNeeded(size_t framesToProcess);
|
|
|
| AudioFloatArray m_positionXValues;
|
|
|