kopia lustrzana https://gitlab.com/eliggett/wfview
Convert audioHandler functions to virtual
rodzic
b3f611543c
commit
8f5ba2efb1
|
@ -43,28 +43,28 @@ class audioHandler : public QObject
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit audioHandler(QObject* parent = nullptr);
|
audioHandler(QObject* parent = nullptr);
|
||||||
~audioHandler();
|
virtual ~audioHandler();
|
||||||
|
|
||||||
int getLatency();
|
virtual int getLatency();
|
||||||
|
|
||||||
void start();
|
virtual void start();
|
||||||
void stop();
|
virtual void stop();
|
||||||
|
|
||||||
quint16 getAmplitude();
|
virtual quint16 getAmplitude();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
bool init(audioSetup setup);
|
virtual bool init(audioSetup setup);
|
||||||
void changeLatency(const quint16 newSize);
|
virtual void changeLatency(const quint16 newSize);
|
||||||
void setVolume(unsigned char volume);
|
virtual void setVolume(unsigned char volume);
|
||||||
void incomingAudio(const audioPacket data);
|
virtual void incomingAudio(const audioPacket data);
|
||||||
void convertedInput(audioPacket audio);
|
virtual void convertedInput(audioPacket audio);
|
||||||
void convertedOutput(audioPacket audio);
|
virtual void convertedOutput(audioPacket audio);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void stateChanged(QAudio::State state);
|
virtual void stateChanged(QAudio::State state);
|
||||||
void clearUnderrun();
|
virtual void clearUnderrun();
|
||||||
void getNextAudioChunk();
|
virtual void getNextAudioChunk();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void audioMessage(QString message);
|
void audioMessage(QString message);
|
||||||
|
|
Ładowanie…
Reference in New Issue