mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-08 23:25:40 +12:00
Some formatting
This commit is contained in:
parent
83aafa31f0
commit
04d047ff75
6 changed files with 143 additions and 145 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue