link playercall

This commit is contained in:
Prakxo
2024-06-08 19:50:33 +02:00
parent dd463a6e6f
commit d9cf62aa29
5 changed files with 104 additions and 1 deletions
+9
View File
@@ -894,6 +894,15 @@ typedef union SOUNDID_ {
u32 uint32;
} SOUNDID;
typedef s32 (*PlayerCallBack)(void*);
typedef struct PLAYER_CALL_ {
PlayerCallBack callback;
void* arg;
u32 DSP_mode;
} PLAYER_CALL;
#ifdef __cplusplus
}
#endif
+8 -1
View File
@@ -2,15 +2,22 @@
#define PLAYERCALL_H
#include "types.h"
#include "jaudio_NES/audiostruct.h"
#ifdef __cplusplus
extern "C" {
#endif
extern void ResetPlayerCallback(void);
extern void ResetPlayerCallback();
extern s32 Jac_RegisterDspPlayerCallback(PlayerCallBack callback, void* arg);
extern s32 Jac_RegisterPlayerCallback(PlayerCallBack callback, void* arg);
#ifdef __cplusplus
}
#endif
extern void PlayerCallback();
extern void DspPlayerCallback();
#endif