|
@@ -392,12 +392,13 @@ class CarlaHeapRingBuffer : public CarlaRingBuffer<HeapBuffer> |
|
|
{ |
|
|
{ |
|
|
public: |
|
|
public: |
|
|
CarlaHeapRingBuffer() noexcept |
|
|
CarlaHeapRingBuffer() noexcept |
|
|
: fHeapBuffer(HeapBuffer_INIT) |
|
|
|
|
|
|
|
|
#ifdef CARLA_PROPER_CPP11_SUPPORT |
|
|
|
|
|
: fHeapBuffer(HeapBuffer_INIT) {} |
|
|
|
|
|
#else |
|
|
{ |
|
|
{ |
|
|
#ifndef CARLA_PROPER_CPP11_SUPPORT |
|
|
|
|
|
carla_zeroStruct(fHeapBuffer); |
|
|
carla_zeroStruct(fHeapBuffer); |
|
|
#endif |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
~CarlaHeapRingBuffer() noexcept override |
|
|
~CarlaHeapRingBuffer() noexcept override |
|
|
{ |
|
|
{ |
|
@@ -448,14 +449,16 @@ class CarlaStackRingBuffer : public CarlaRingBuffer<StackBuffer> |
|
|
{ |
|
|
{ |
|
|
public: |
|
|
public: |
|
|
CarlaStackRingBuffer() noexcept |
|
|
CarlaStackRingBuffer() noexcept |
|
|
|
|
|
#ifdef CARLA_PROPER_CPP11_SUPPORT |
|
|
: fStackBuffer(StackBuffer_INIT) |
|
|
: fStackBuffer(StackBuffer_INIT) |
|
|
{ |
|
|
{ |
|
|
#ifdef CARLA_PROPER_CPP11_SUPPORT |
|
|
|
|
|
setRingBuffer(&fStackBuffer, false); |
|
|
setRingBuffer(&fStackBuffer, false); |
|
|
|
|
|
} |
|
|
#else |
|
|
#else |
|
|
|
|
|
{ |
|
|
setRingBuffer(&fStackBuffer, true); |
|
|
setRingBuffer(&fStackBuffer, true); |
|
|
#endif |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
private: |
|
|
private: |
|
|
StackBuffer fStackBuffer; |
|
|
StackBuffer fStackBuffer; |
|
|