18 #ifndef SDRBASE_DSP_SAMPLESOURCEFIFO_H_ 19 #define SDRBASE_DSP_SAMPLESOURCEFIFO_H_ 40 void readAdvance(SampleVector::iterator& readUntil,
unsigned int nbSamples);
42 void getReadIterator(SampleVector::iterator& readUntil);
43 void getWriteIterator(SampleVector::iterator& writeAt);
44 void bumpIndex(SampleVector::iterator& writeAt);
45 int getIteratorOffset(
const SampleVector::iterator& iterator);
46 void setIteratorFromOffset(SampleVector::iterator& iterator,
int offset);
48 void write(
const Sample& sample);
55 delta = (m_size/2) - (m_iw - m_ir);
57 delta = (m_ir - m_iw) - (m_size/2);
59 return delta / (float) m_size;
71 void dataWrite(
int nbSamples);
72 void dataRead(
int nbSamples);
std::vector< Sample > SampleVector
float getRWBalance() const