RSP: Added musyx ucode suport to HLE from mupen64plus-ae
[mupen64plus-pandora.git] / source / mupen64plus-rsp-hle / src / alist_internal.h
old mode 100644 (file)
new mode 100755 (executable)
index ae39883..df6fa27
@@ -22,9 +22,9 @@
 #ifndef ALIST_INTERNAL_H
 #define ALIST_INTERNAL_H
 
-#include "hle.h"
+#include <stdint.h>
 
-typedef void (*acmd_callback_t)(u32 inst1, u32 inst2);
+typedef void (*acmd_callback_t)(uint32_t inst1, uint32_t inst2);
 
 /*
  * Audio flags
@@ -43,8 +43,15 @@ typedef void (*acmd_callback_t)(u32 inst1, u32 inst2);
 #define A_MAIN          0x00
 #define A_MIX           0x10
 
-extern u16 AudioInBuffer, AudioOutBuffer, AudioCount;
-extern u16 AudioAuxA, AudioAuxC, AudioAuxE;
-extern u32 loopval; // Value set by A_SETLOOP : Possible conflict with SETVOLUME???
+/* FIXME: this decomposition into 3 ABI is not accurate,
+ * there are a least 9 or 10 different ABI, each with one or a few revisions
+ * for a total of almost 16 differents audio ucode.
+ *
+ * ABI2 in fact is a mix of at least 7 differents ABI which are mostly compatible
+ * but not totally, that's why there is a isZeldaABI/isMKABI workaround.
+ */
+extern const acmd_callback_t ABI1[0x10];
+extern const acmd_callback_t ABI2[0x20];
+extern const acmd_callback_t ABI3[0x10];
 
-#endif
+#endif
\ No newline at end of file