21 #ifndef AUDIO_SOURCE_H 22 #define AUDIO_SOURCE_H 24 #include <QAudioFormat> 68 virtual qint64
writeData (
const char * data, qint64 maxSize ) ;
75 virtual qint64
readData (
char * data, qint64 maxSize ) ;
79 virtual bool open ( OpenMode mode ) ;
101 void frameCaptured(
const QByteArray& aFrame,quint32 aSeqNo) ;
opposite of audiosink.
Definition: audiosource.h:41
void timerEvent(QTimerEvent *event)
quint32 getCurrentSeqNo() const
Definition: audiosource.h:53
void frameCaptured(const QByteArray &aFrame, quint32 aSeqNo)
virtual qint64 writeData(const char *data, qint64 maxSize)
void audioMaxLevel(float aMaxVolume)
virtual bool open(OpenMode mode)
virtual bool isSequential() const
Definition: audiosource.h:86
QAudioFormat iFormat
Definition: audiosource.h:117
M of the MVC pattern. Handles permanent storage.
Definition: model.h:48
QByteArray iAudioBuffer
Definition: audiosource.h:119
virtual qint64 readData(char *data, qint64 maxSize)
bool iNeedsToRun
Definition: audiosource.h:121
void processCapturedAudio()
Model & iModel
Definition: audiosource.h:122
QAudioInput * iAudioInput
Definition: audiosource.h:118
int iTimerId
Definition: audiosource.h:123
quint32 iSeqNo
Definition: audiosource.h:120
AudioSource(Model &aModel)
void inputStatusChanged(QAudio::State aState)