// ReverbInputBuffer is used to buffer input samples for deferred processing by // the background threads. class ReverbInputBuffer { public: explicit ReverbInputBuffer(size_t length);
// The realtime audio thread keeps writing samples here. // The assumption is that the buffer's length is evenly divisible by // numberOfFrames (for nearly all cases this will be fine). // FIXME: remove numberOfFrames restriction... void write(constfloat* sourceP, size_t numberOfFrames);
// Background threads can call this to check if there's anything to read...
size_t writeIndex() const { return m_writeIndex; }
// The individual background threads read here (and hope that they can keep up // with the buffer writing). readIndex is updated with the next readIndex to // read from... The assumption is that the buffer's length is evenly divisible // by numberOfFrames. // FIXME: remove numberOfFrames restriction... float* directReadFrom(int* readIndex, size_t numberOfFrames);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.