all repos — mgba @ 0717e4ab76f068165a15b5862fc377e95c51a925

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
25	void setBufferSamples(int samples);
26
27private:
28	GBAThread* m_context;
29	QAudioOutput* m_audioOutput;
30	AudioDevice* m_device;
31};
32
33}
34
35#endif