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