src/platform/qt/AudioProcessorQt.h (view raw)
1#ifndef QGBA_AUDIO_PROCESSOR_QT
2#define QGBA_AUDIO_PROCESSOR_QT
3#include "AudioProcessor.h"
4
5namespace QGBA {
6
7class AudioDevice;
8
9class AudioProcessorQt : public AudioProcessor {
10Q_OBJECT
11
12public:
13 AudioProcessorQt(QObject* parent = nullptr);
14
15 virtual void setInput(GBAThread* input);
16
17public slots:
18 virtual void start();
19 virtual void pause();
20
21 virtual void setBufferSamples(int samples);
22 virtual void inputParametersChanged();
23
24private:
25 QAudioOutput* m_audioOutput;
26 AudioDevice* m_device;
27};
28
29}
30
31#endif