all repos — mgba @ 7cad9ab33a3ac07060bc971c3a2f9e86d15424ff

mGBA Game Boy Advance Emulator

src/platform/qt/AudioProcessorQt.h (view raw)

 1/* Copyright (c) 2013-2014 Jeffrey Pfau
 2 *
 3 * This Source Code Form is subject to the terms of the Mozilla Public
 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 6#ifndef QGBA_AUDIO_PROCESSOR_QT
 7#define QGBA_AUDIO_PROCESSOR_QT
 8#include "AudioProcessor.h"
 9
10 class QAudioOutput;
11
12namespace QGBA {
13
14class AudioDevice;
15
16class AudioProcessorQt : public AudioProcessor {
17Q_OBJECT
18
19public:
20	AudioProcessorQt(QObject* parent = nullptr);
21
22	virtual void setInput(GBAThread* input);
23
24public slots:
25	virtual void start();
26	virtual void pause();
27
28	virtual void setBufferSamples(int samples);
29	virtual void inputParametersChanged();
30
31private:
32	QAudioOutput* m_audioOutput;
33	AudioDevice* m_device;
34};
35
36}
37
38#endif