mirror of
https://github.com/emu-russia/pureikyubu.git
synced 2025-04-02 10:42:15 -04:00
33 lines
562 B
C++
33 lines
562 B
C++
|
|
#pragma once
|
|
|
|
#include "../Common/Thread.h"
|
|
|
|
// hardware registers base (physical address)
|
|
#define HW_BASE 0x0C000000
|
|
|
|
namespace Flipper
|
|
{
|
|
class AudioMixer;
|
|
|
|
class Flipper
|
|
{
|
|
static void HwUpdateThread(void* Parameter);
|
|
|
|
int64_t hwUpdateTbrValue = 0;
|
|
|
|
Thread* hwUpdateThread = nullptr;
|
|
static const size_t ticksToHwUpdate = 100;
|
|
|
|
public:
|
|
DSP::DspCore* DSP; // instance of dsp core
|
|
AudioMixer* Mixer = nullptr;
|
|
|
|
Flipper(HWConfig* config);
|
|
~Flipper();
|
|
|
|
void Update();
|
|
};
|
|
|
|
extern Flipper* HW;
|
|
}
|