1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

AudioBuffer: Revert ce20ab8a causing performance issues in some cases

This commit is contained in:
ed 2021-08-13 13:55:04 +01:00
parent 6d40b627ba
commit 832deb9ad7

View file

@ -227,7 +227,7 @@ public:
size (other.size),
allocatedBytes (other.allocatedBytes),
allocatedData (std::move (other.allocatedData)),
isClear (other.isClear.load())
isClear (other.isClear)
{
if (numChannels < (int) numElementsInArray (preallocatedChannelSpace))
{
@ -253,7 +253,7 @@ public:
size = other.size;
allocatedBytes = other.allocatedBytes;
allocatedData = std::move (other.allocatedData);
isClear = other.isClear.load();
isClear = other.isClear;
if (numChannels < (int) numElementsInArray (preallocatedChannelSpace))
{
@ -1124,7 +1124,7 @@ private:
Type** channels;
HeapBlock<char, true> allocatedData;
Type* preallocatedChannelSpace[32];
std::atomic<bool> isClear { false };
bool isClear = false;
void allocateData()
{