all repos — mgba @ 62f6471c0d4cbf5a7b0849ac7b030759bf0da5e7

mGBA Game Boy Advance Emulator

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
25private:
26	GBAThread* m_context;
27	QAudioOutput* m_audioOutput;
28	AudioDevice* m_device;
29};
30
31}
32
33#endif