all repos — mgba @ 805e0b17eb3e7cb1cb6e01370811d7c9dd7f0377

mGBA Game Boy Advance Emulator

src/platform/qt/AudioProcessorSDL.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_SDL
 7#define QGBA_AUDIO_PROCESSOR_SDL
 8#include "AudioProcessor.h"
 9
10#ifdef BUILD_SDL
11
12extern "C" {
13#include "platform/sdl/sdl-audio.h"
14}
15
16namespace QGBA {
17
18class AudioProcessorSDL : public AudioProcessor {
19Q_OBJECT
20
21public:
22	AudioProcessorSDL(QObject* parent = nullptr);
23	~AudioProcessorSDL();
24
25public slots:
26	virtual void start();
27	virtual void pause();
28
29	virtual void setBufferSamples(int samples);
30	virtual void inputParametersChanged();
31
32	virtual unsigned sampleRate() const override;
33
34private:
35	GBASDLAudio m_audio;
36};
37
38}
39
40#endif
41
42#endif