60 SampleVector::iterator writeAt;
64 for (
int i = 0;
i < nbSamples;
i++)
77 qDebug(
"BasebandSampleSource::setDeviceSampleSourceFifo: disconnect device FIFO %p",
m_deviceSampleFifo);
81 if (deviceSampleFifo) {
82 qDebug(
"BasebandSampleSource::setDeviceSampleSourceFifo: connect device FIFO %p", deviceSampleFifo);
void handleWriteToDeviceFifo(int nbSamples)
virtual void pullAudio(int nbSamples)
Message * pop()
Pop message from queue.
virtual ~BasebandSampleSource()
virtual bool handleMessage(const Message &cmd)=0
Processing of a message. Returns true if message has actually been processed.
void handleInputMessages()
void bumpIndex(SampleVector::iterator &writeAt)
copy current item to second buffer and bump write index - write phase 2
void handleWriteToFifo(SampleSourceFifo *sampleFifo, int nbSamples)
virtual void pull(Sample &sample)=0
SampleSourceFifo * m_deviceSampleFifo
Reference to the device FIFO for single channel processing.
SampleSourceFifo m_sampleFifo
Internal FIFO for multi-channel processing.
void setDeviceSampleSourceFifo(SampleSourceFifo *deviceSampleFifo)
MessageQueue m_inputMessageQueue
Queue for asynchronous inbound communication.
void getWriteIterator(SampleVector::iterator &writeAt)
get iterator to current item for update - write phase 1