all repos — mgba @ 5b41141b0213cfb6f1be273784166ef79aae05e7

mGBA Game Boy Advance Emulator

src/platform/qt/AudioProcessor.cpp (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#include "AudioProcessor.h"
 7
 8#include "AudioDevice.h"
 9
10#ifdef BUILD_SDL
11#include "AudioProcessorSDL.h"
12#else
13#include "AudioProcessorQt.h"
14#endif
15
16#include <QAudioOutput>
17
18extern "C" {
19#include "gba-thread.h"
20}
21
22using namespace QGBA;
23
24AudioProcessor* AudioProcessor::create() {
25#ifdef BUILD_SDL
26	return new AudioProcessorSDL();
27#else
28	return new AudioProcessorQt();
29#endif	
30}
31
32AudioProcessor::AudioProcessor(QObject* parent)
33	: QObject(parent)
34{
35}
36
37void AudioProcessor::setInput(GBAThread* input) {
38	m_context = input;
39}