all repos — mgba @ e6ea94d2296eae963a48a18d009217a38d92bf9b

mGBA Game Boy Advance Emulator

src/platform/qt/AudioProcessor.cpp (view raw)

 1#include "AudioProcessor.h"
 2
 3#include "AudioDevice.h"
 4
 5#ifdef BUILD_SDL
 6#include "AudioProcessorSDL.h"
 7#else
 8#include "AudioProcessorQt.h"
 9#endif
10
11#include <QAudioOutput>
12
13extern "C" {
14#include "gba-thread.h"
15}
16
17using namespace QGBA;
18
19AudioProcessor* AudioProcessor::create() {
20#ifdef BUILD_SDL
21	return new AudioProcessorSDL();
22#else
23	return new AudioProcessorQt();
24#endif	
25}
26
27AudioProcessor::AudioProcessor(QObject* parent)
28	: QObject(parent)
29{
30}
31
32void AudioProcessor::setInput(GBAThread* input) {
33	m_context = input;
34}