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
10namespace QGBA {
11
12class AudioDevice;
13
14class AudioProcessorQt : public AudioProcessor {
15Q_OBJECT
16
17public:
18 AudioProcessorQt(QObject* parent = nullptr);
19
20 virtual void setInput(GBAThread* input);
21
22public slots:
23 virtual void start();
24 virtual void pause();
25
26 virtual void setBufferSamples(int samples);
27 virtual void inputParametersChanged();
28
29private:
30 QAudioOutput* m_audioOutput;
31 AudioDevice* m_device;
32};
33
34}
35
36#endif