Cosmetic changes to include/SCBufferAdaptor.hpp

nix
Owen Green 7 years ago
parent 1d204f97b5
commit 6529d6c813

@ -87,7 +87,11 @@ public:
void cleanUp() void cleanUp()
{ {
if (mOldData) boost::alignment::aligned_free(mOldData); if (mOldData)
{
boost::alignment::aligned_free(mOldData);
mOldData = nullptr;
}
} }
// No locks in (vanilla) SC, so no-ops for these // No locks in (vanilla) SC, so no-ops for these
@ -147,10 +151,8 @@ public:
thisThing->samplerate); thisThing->samplerate);
} }
int bufnum() int bufnum() { return mBufnum; }
{ void realTime(bool rt) { mRealTime = rt; }
return mBufnum;
}
protected: protected:
bool equal(BufferAdaptor *rhs) const override bool equal(BufferAdaptor *rhs) const override
@ -160,10 +162,11 @@ protected:
return false; return false;
} }
float *mOldData = 0; bool mRealTime{false};
float *mOldData{0};
long mBufnum; long mBufnum;
World *mWorld; World *mWorld;
size_t mRank = 1; size_t mRank{1};
}; };
class RTBufferView : public client::BufferAdaptor class RTBufferView : public client::BufferAdaptor

Loading…
Cancel
Save