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:
parent
6d40b627ba
commit
832deb9ad7
1 changed files with 3 additions and 3 deletions
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue