mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 22:55:40 +12:00
This should clean up all HLE errorcode in the codebase. I didn't removed Rust::Result as this should be a cleanup for another iteration.
30 lines
No EOL
759 B
C++
30 lines
No EOL
759 B
C++
#pragma once
|
|
#include "helpers.hpp"
|
|
#include "kernel_types.hpp"
|
|
#include "logger.hpp"
|
|
#include "memory.hpp"
|
|
#include "result/result.hpp"
|
|
|
|
class MICService {
|
|
Handle handle = KernelHandles::MIC;
|
|
Memory& mem;
|
|
MAKE_LOG_FUNCTION(log, micLogger)
|
|
|
|
// Service commands
|
|
void getGain(u32 messagePointer);
|
|
void mapSharedMem(u32 messagePointer);
|
|
void setClamp(u32 messagePointer);
|
|
void setGain(u32 messagePointer);
|
|
void setPower(u32 messagePointer);
|
|
void startSampling(u32 messagePointer);
|
|
void theCaptainToadFunction(u32 messagePointer);
|
|
|
|
u8 gain = 0; // How loud our microphone input signal is
|
|
bool micEnabled = false;
|
|
bool shouldClamp = false;
|
|
|
|
public:
|
|
MICService(Memory& mem) : mem(mem) {}
|
|
void reset();
|
|
void handleSyncRequest(u32 messagePointer);
|
|
}; |