all repos — mgba @ 74ac89a584b068b9d9c02e5117eddbe6da22d9c5

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
10class 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
31	virtual unsigned sampleRate() const override;
32
33private:
34	QAudioOutput* m_audioOutput;
35	AudioDevice* m_device;
36};
37
38}
39
40#endif