2015-05-24 06:55:12 +02:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2015-05-18 01:08:10 +02:00
|
|
|
// Licensed under GPLv2+
|
2013-04-17 22:43:11 -04:00
|
|
|
// Refer to the license.txt file included.
|
2010-08-04 14:00:59 +00:00
|
|
|
|
2017-06-08 00:53:59 -04:00
|
|
|
#include "Core/DSPEmulator.h"
|
|
|
|
|
2016-01-17 22:33:21 -05:00
|
|
|
#include <memory>
|
2010-08-04 14:00:59 +00:00
|
|
|
|
2014-02-17 05:18:15 -05:00
|
|
|
#include "Core/HW/DSPHLE/DSPHLE.h"
|
2014-02-19 13:09:14 -05:00
|
|
|
#include "Core/HW/DSPLLE/DSPLLE.h"
|
2010-08-04 14:00:59 +00:00
|
|
|
|
2016-01-17 22:33:21 -05:00
|
|
|
std::unique_ptr<DSPEmulator> CreateDSPEmulator(bool hle)
|
2010-08-04 14:00:59 +00:00
|
|
|
{
|
2016-06-24 10:43:46 +02:00
|
|
|
if (hle)
|
2016-12-30 13:25:40 -05:00
|
|
|
return std::make_unique<DSP::HLE::DSPHLE>();
|
2016-01-17 22:33:21 -05:00
|
|
|
|
2016-12-30 13:25:40 -05:00
|
|
|
return std::make_unique<DSP::LLE::DSPLLE>();
|
2011-01-28 18:39:30 +00:00
|
|
|
}
|