[webaudio] Fix up ReverbInputBuffer's writeIndex.

This commit is contained in:
Moonchild 2021-01-26 14:55:48 +00:00 • committed by roytam1
commit 1835a24351
2 changed files with 13 additions and 11 deletions

View file

@ -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