Some formatting

This commit is contained in:
wheremyfoodat 2024-11-22 02:48:32 +02:00
parent 83aafa31f0
commit 04d047ff75
6 changed files with 143 additions and 145 deletions

View file

@ -1,7 +1,8 @@
#pragma once #pragma once
#include "PICA/float_types.hpp"
#include <array> #include <array>
#include "PICA/float_types.hpp"
namespace PICA { namespace PICA {
// A representation of the output vertex as it comes out of the vertex shader, with padding and all // A representation of the output vertex as it comes out of the vertex shader, with padding and all
struct Vertex { struct Vertex {

View file

@ -8,8 +8,8 @@
#include "helpers.hpp" #include "helpers.hpp"
#include "logger.hpp" #include "logger.hpp"
#include "scheduler.hpp"
#include "ring_buffer.hpp" #include "ring_buffer.hpp"
#include "scheduler.hpp"
// The DSP core must have access to the DSP service to be able to trigger interrupts properly // The DSP core must have access to the DSP service to be able to trigger interrupts properly
class DSPService; class DSPService;
@ -39,8 +39,7 @@ namespace Audio {
public: public:
enum class Type { Null, Teakra, HLE }; enum class Type { Null, Teakra, HLE };
DSPCore(Memory& mem, Scheduler& scheduler, DSPService& dspService) DSPCore(Memory& mem, Scheduler& scheduler, DSPService& dspService) : mem(mem), scheduler(scheduler), dspService(dspService) {}
: mem(mem), scheduler(scheduler), dspService(dspService) {}
virtual ~DSPCore() {} virtual ~DSPCore() {}
virtual void reset() = 0; virtual void reset() = 0;

View file

@ -9,7 +9,7 @@ enum class Regions : u32 {
Australia = 3, Australia = 3,
China = 4, China = 4,
Korea = 5, Korea = 5,
Taiwan = 6 Taiwan = 6,
}; };
// Used for the language field in the NAND user data // Used for the language field in the NAND user data

View file

@ -120,9 +120,7 @@ namespace Audio {
dspService.triggerPipeEvent(DSPPipeType::Audio); dspService.triggerPipeEvent(DSPPipeType::Audio);
break; break;
case StateChange::Shutdown: case StateChange::Shutdown: dspState = DSPState::Off; break;
dspState = DSPState::Off;
break;
default: Helpers::panic("Unimplemented DSP audio pipe state change %d", state); default: Helpers::panic("Unimplemented DSP audio pipe state change %d", state);
} }