/* Copyright (c) 2013-2014 Jeffrey Pfau * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef QGBA_AUDIO_PROCESSOR_SDL #define QGBA_AUDIO_PROCESSOR_SDL #include "AudioProcessor.h" #ifdef BUILD_SDL extern "C" { #include "platform/sdl/sdl-audio.h" } namespace QGBA { class AudioProcessorSDL : public AudioProcessor { Q_OBJECT public: AudioProcessorSDL(QObject* parent = nullptr); ~AudioProcessorSDL(); public slots: virtual void start(); virtual void pause(); virtual void setBufferSamples(int samples); virtual void inputParametersChanged(); virtual unsigned sampleRate() const override; private: GBASDLAudio m_audio; }; } #endif #endif