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