mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-07-11 21:21:59 -04:00
Implement & link jaudio_NES/[dspbuf.c, cpubuf.c]
This commit is contained in:
@@ -20,9 +20,9 @@ extern "C" {
|
||||
(u32)((((a0) & 0xFF) << 24) | (((a1) & 0xFF) << 16) | (((a2) & 0xFF) << 8) | (((a3) & 0xFF) << 0))
|
||||
|
||||
typedef enum DSPBUF_EVENTS {
|
||||
DSPBUF_EVENTS_0 = 0,
|
||||
DSPBUF_EVENTS_1 = 1,
|
||||
DSPBUF_EVENTS_2 = 2,
|
||||
DSPBUF_EVENT_INIT = 0,
|
||||
DSPBUF_EVENT_FRAME_END = 1,
|
||||
DSPBUF_EVENT_MIX = 2,
|
||||
} DSPBUF_EVENTS;
|
||||
|
||||
typedef enum SampleMedium {
|
||||
|
||||
@@ -2,9 +2,10 @@
|
||||
#define CPUBUF_H
|
||||
|
||||
#include "types.h"
|
||||
#include "jaudio_NES/rate.h"
|
||||
#include "jaudio_NES/audiocommon.h"
|
||||
|
||||
extern u32 CpubufProcess(DSPBUF_EVENTS event);
|
||||
extern s16* CpubufProcess(DSPBUF_EVENTS event);
|
||||
extern void CpuFrameEnd(void);
|
||||
extern s16* MixCpu(s32 nSamples);
|
||||
|
||||
|
||||
@@ -3,8 +3,9 @@
|
||||
|
||||
#include "types.h"
|
||||
#include "jaudio_NES/audiocommon.h"
|
||||
#include "jaudio_NES/rate.h"
|
||||
|
||||
extern u32 DspbufProcess(DSPBUF_EVENTS event);
|
||||
extern s16* DspbufProcess(DSPBUF_EVENTS event);
|
||||
extern s16* MixDsp(s32 nSamples);
|
||||
extern void UpdateDSP(void);
|
||||
extern void DspFrameEnd(void);
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
#ifndef DSPDRIVER_H
|
||||
#define DSPDRIVER_H
|
||||
|
||||
#include "types.h"
|
||||
|
||||
extern void UpdateDSPchannelAll(void);
|
||||
|
||||
#endif
|
||||
@@ -4,5 +4,6 @@
|
||||
#include "types.h"
|
||||
|
||||
extern void DSP_InitBuffer(void);
|
||||
extern void DSP_InvalChannelAll(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -4,5 +4,6 @@
|
||||
#include "types.h"
|
||||
|
||||
extern u32 DSPReleaseHalt(void);
|
||||
extern void DsyncFrame(u32 subframes, u32 dspbuf_start, u32 dspbuf_end);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
#ifndef IPLDEC_H
|
||||
#define IPLDEC_H
|
||||
|
||||
#include "types.h"
|
||||
|
||||
extern BOOL DspExtraTaskCheck(void);
|
||||
|
||||
#endif
|
||||
@@ -4,6 +4,9 @@
|
||||
#include "types.h"
|
||||
#include "jaudio_NES/audiostruct.h"
|
||||
|
||||
extern u32 Neos_Update(s16* dst);
|
||||
extern void ImageLoaded(u32 param);
|
||||
extern BOOL Neos_CheckBoot(void);
|
||||
extern void* neosproc(void* param);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -16,4 +16,8 @@ extern s32 Jac_RegisterPlayerCallback(PlayerCallBack callback, void* arg);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* C++ linkage, should these go in a different header file? */
|
||||
extern void PlayerCallback();
|
||||
extern void DspPlayerCallback();
|
||||
|
||||
#endif
|
||||
|
||||
@@ -8,6 +8,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
extern u32 JAC_AI_SETTING;
|
||||
extern u32 JAC_SUBFRAMES;
|
||||
extern u32 JAC_FRAMESAMPLES;
|
||||
extern u32 DAC_SIZE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user