mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-06 14:15:41 +12:00
HLE DSP: Formatting
This commit is contained in:
parent
1cc3bbf68d
commit
ea6818eb4b
2 changed files with 7 additions and 7 deletions
|
@ -1,20 +1,20 @@
|
|||
#include "audio/dsp_core.hpp"
|
||||
|
||||
#include "audio/hle_core.hpp"
|
||||
#include "audio/null_core.hpp"
|
||||
#include "audio/teakra_core.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cctype>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "audio/hle_core.hpp"
|
||||
#include "audio/null_core.hpp"
|
||||
#include "audio/teakra_core.hpp"
|
||||
|
||||
std::unique_ptr<Audio::DSPCore> Audio::makeDSPCore(DSPCore::Type type, Memory& mem, Scheduler& scheduler, DSPService& dspService) {
|
||||
std::unique_ptr<DSPCore> core;
|
||||
|
||||
switch (type) {
|
||||
case DSPCore::Type::Null: core = std::make_unique<NullDSP>(mem, scheduler, dspService); break;
|
||||
case DSPCore::Type::Teakra: core = std::make_unique<TeakraDSP>(mem, scheduler, dspService); break;
|
||||
case DSPCore::Type::HLE: core = std::make_unique<HLE_DSP>(mem, scheduler, dspService); break;
|
||||
case DSPCore::Type::HLE: core = std::make_unique<HLE_DSP>(mem, scheduler, dspService); break;
|
||||
|
||||
default:
|
||||
Helpers::warn("Invalid DSP core selected!");
|
||||
|
@ -47,7 +47,7 @@ const char* Audio::DSPCore::typeToString(Audio::DSPCore::Type type) {
|
|||
switch (type) {
|
||||
case Audio::DSPCore::Type::Null: return "null";
|
||||
case Audio::DSPCore::Type::Teakra: return "teakra";
|
||||
case Audio::DSPCore::Type::HLE: return "hle";
|
||||
case Audio::DSPCore::Type::HLE: return "hle";
|
||||
default: return "invalid";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -108,7 +108,7 @@ namespace Audio {
|
|||
|
||||
u16 HLE_DSP::recvData(u32 regId) {
|
||||
if (regId != 0) {
|
||||
Helpers::panic("Audio: invalid register in null frontend");
|
||||
Helpers::panic("Audio: invalid register in HLE frontend");
|
||||
}
|
||||
|
||||
return dspState == DSPState::On;
|
||||
|
|
Loading…
Add table
Reference in a new issue