HLE DSP: Formatting

This commit is contained in:
wheremyfoodat 2024-04-14 13:13:19 +03:00
parent 1cc3bbf68d
commit ea6818eb4b
2 changed files with 7 additions and 7 deletions

View file

@ -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";
}
}

View file

@ -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;