diff options
author | Moonchild <moonchild@palemoon.org> | 2021-01-26 14:55:48 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-01-26 14:55:48 +0000 |
commit | 2836e514661df0ffd816cf957ecc35c968377fbe (patch) | |
tree | eee419d6ad543823ddb94b0f81d069db95a548f1 /dom/media/webaudio/blink/ReverbInputBuffer.h | |
parent | 3661ecee115e4810b9842a0a8e2f314434a841aa (diff) | |
download | UXP-2836e514661df0ffd816cf957ecc35c968377fbe.tar UXP-2836e514661df0ffd816cf957ecc35c968377fbe.tar.gz UXP-2836e514661df0ffd816cf957ecc35c968377fbe.tar.lz UXP-2836e514661df0ffd816cf957ecc35c968377fbe.tar.xz UXP-2836e514661df0ffd816cf957ecc35c968377fbe.zip |
[webaudio] Fix up ReverbInputBuffer's writeIndex.
Diffstat (limited to 'dom/media/webaudio/blink/ReverbInputBuffer.h')
-rw-r--r-- | dom/media/webaudio/blink/ReverbInputBuffer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dom/media/webaudio/blink/ReverbInputBuffer.h b/dom/media/webaudio/blink/ReverbInputBuffer.h index 906021c0d..f51aa3091 100644 --- a/dom/media/webaudio/blink/ReverbInputBuffer.h +++ b/dom/media/webaudio/blink/ReverbInputBuffer.h @@ -30,6 +30,7 @@ #define ReverbInputBuffer_h #include "nsTArray.h" +#include "mozilla/Atomics.h" #include "mozilla/MemoryReporting.h" namespace WebCore { @@ -63,7 +64,7 @@ public: private: nsTArray<float> m_buffer; - size_t m_writeIndex; + mozilla::Atomic<size_t, mozilla::ReleaseAcquire> m_writeIndex; }; } // namespace WebCore |