mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-03 12:27:21 +12:00
More CSND stubbing
This commit is contained in:
parent
da29cecf7a
commit
b394cacbc7
6 changed files with 67 additions and 6 deletions
|
@ -1,16 +1,28 @@
|
|||
#pragma once
|
||||
#include <optional>
|
||||
|
||||
#include "helpers.hpp"
|
||||
#include "kernel_types.hpp"
|
||||
#include "logger.hpp"
|
||||
#include "memory.hpp"
|
||||
|
||||
// Circular dependencies ^-^
|
||||
class Kernel;
|
||||
|
||||
class CSNDService {
|
||||
Handle handle = KernelHandles::CSND;
|
||||
Memory& mem;
|
||||
Kernel& kernel;
|
||||
MAKE_LOG_FUNCTION(log, csndLogger)
|
||||
|
||||
bool initialized = false;
|
||||
std::optional<Handle> csndMutex = std::nullopt;
|
||||
|
||||
// Service functions
|
||||
void initialize(u32 messagePointer);
|
||||
|
||||
public:
|
||||
CSNDService(Memory& mem) : mem(mem) {}
|
||||
CSNDService(Memory& mem, Kernel& kernel) : mem(mem), kernel(kernel) {}
|
||||
void reset();
|
||||
void handleSyncRequest(u32 messagePointer);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue