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 ) ;
105 float aVolumeLevel) ;
opposite of audiosink.
Definition: audiosource.h:41
void timerEvent(QTimerEvent *event)
virtual qint64 writeData(const char *data, qint64 maxSize)
void audioMaxLevel(float aMaxVolume)
virtual bool open(OpenMode mode)
QAudioFormat iFormat
Definition: audiosource.h:121
virtual bool isSequential() const
Definition: audiosource.h:86
M of the MVC pattern. Handles permanent storage.
Definition: model.h:50
QByteArray iAudioBuffer
Definition: audiosource.h:123
virtual qint64 readData(char *data, qint64 maxSize)
bool iNeedsToRun
Definition: audiosource.h:125
void processCapturedAudio()
Model & iModel
Definition: audiosource.h:126
void frameCaptured(const QByteArray &aFrame, quint32 aSeqNo, float aVolumeLevel)
QAudioInput * iAudioInput
Definition: audiosource.h:122
int iTimerId
Definition: audiosource.h:127
quint32 getCurrentSeqNo() const
Definition: audiosource.h:53
quint32 iSeqNo
Definition: audiosource.h:124
AudioSource(Model &aModel)
void inputStatusChanged(QAudio::State aState)