diff options
| author | Arisotura <thetotalworm@gmail.com> | 2023-11-02 21:04:09 +0100 | 
|---|---|---|
| committer | Arisotura <thetotalworm@gmail.com> | 2023-11-02 21:04:09 +0100 | 
| commit | 70c6750561b0c130b430e2ec3d076708b3767674 (patch) | |
| tree | f2cc1b0aad735f9be60e5f837ceca120980ca682 /src/DSi_DSP.cpp | |
| parent | 5ccd3916ff719ea4ed49030077794fadda048cb9 (diff) | |
better, less hacky, more OOP-friendly scheduler design
Diffstat (limited to 'src/DSi_DSP.cpp')
| -rw-r--r-- | src/DSi_DSP.cpp | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/src/DSi_DSP.cpp b/src/DSi_DSP.cpp index eaa80f9..d474763 100644 --- a/src/DSi_DSP.cpp +++ b/src/DSi_DSP.cpp @@ -129,6 +129,8 @@ void AudioCb(std::array<s16, 2> frame)  bool Init()  { +    NDS::RegisterEventFunc(NDS::Event_DSi_DSP, 0, DSPCatchUpU32); +      TeakraCore = new Teakra::Teakra();      SCFG_RST = false; @@ -171,6 +173,8 @@ void DeInit()      //PDATAReadFifo = NULL;      //PDATAWriteFifo = NULL;      TeakraCore = NULL; + +    NDS::UnregisterEventFunc(NDS::Event_DSi_DSP, 0);  }  void Reset() @@ -579,7 +583,7 @@ void Run(u32 cycles)      NDS::CancelEvent(NDS::Event_DSi_DSP);      NDS::ScheduleEvent(NDS::Event_DSi_DSP, false, -            16384/*from citra (TeakraSlice)*/, DSPCatchUpU32, 0); +            16384/*from citra (TeakraSlice)*/, 0, 0);  }  void DoSavestate(Savestate* file) |