32 QObject(other.parent()),
44 qDebug(
"SampleSourceFifo::resize: %d", size);
53 static Sample zero = {0,0};
63 assert(nbSamples <=
m_size/2);
106 return iterator -
m_data.begin();
111 iterator =
m_data.begin() + offset;
int getIteratorOffset(const SampleVector::iterator &iterator)
void dataRead(int nbSamples)
SampleSourceFifo(uint32_t size, QObject *parent=nullptr)
void bumpIndex(SampleVector::iterator &writeAt)
copy current item to second buffer and bump write index - write phase 2
void readAdvance(SampleVector::iterator &readUntil, unsigned int nbSamples)
void dataWrite(int nbSamples)
void write(const Sample &sample)
write directly - phase 1 + phase 2
void resize(uint32_t size)
void setIteratorFromOffset(SampleVector::iterator &iterator, int offset)
void getWriteIterator(SampleVector::iterator &writeAt)
get iterator to current item for update - write phase 1
void getReadIterator(SampleVector::iterator &readUntil)
get iterator past the last sample of a read advance operation (i.e. current read iterator) ...