19 #ifndef INCLUDE_SAMPLEFIFO_H 20 #define INCLUDE_SAMPLEFIFO_H 51 bool setSize(
int size);
52 inline uint
size()
const {
return m_size; }
53 inline uint
fill() { QMutexLocker mutexLocker(&m_mutex); uint fill = m_fill;
return fill; }
55 uint write(
const quint8* data, uint count);
56 uint write(SampleVector::const_iterator begin, SampleVector::const_iterator end);
58 uint read(SampleVector::iterator begin, SampleVector::iterator end);
60 uint readBegin(uint count,
61 SampleVector::iterator* part1Begin, SampleVector::iterator* part1End,
62 SampleVector::iterator* part2Begin, SampleVector::iterator* part2End);
63 uint readCommit(uint count);
69 #endif // INCLUDE_SAMPLEFIFO_H
std::vector< Sample > SampleVector
void * create(QString type)