Convert audioHandler functions to virtual

monitor
Phil Taylor 2022-05-14 13:54:09 +01:00
rodzic b3f611543c
commit 8f5ba2efb1
1 zmienionych plików z 15 dodań i 15 usunięć

Wyświetl plik

@ -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);