aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/include/psxcd.h
diff options
context:
space:
mode:
authorJohn "Lameguy" Wilbert Villamor <lameguy64@gmail.com>2022-10-19 17:57:06 +0800
committerGitHub <noreply@github.com>2022-10-19 17:57:06 +0800
commite08a3d9366f8ca14a76b3dd569dac1fb9f569748 (patch)
tree33654513b0b184c27f8035dbc405640fcbeb44ab /libpsn00b/include/psxcd.h
parentc4a2533d21dfd05cde841ea48c67b05e0e6a853f (diff)
parent9b2ffc6078a850b7d354855cca7622090b41f30c (diff)
downloadpsn00bsdk-e08a3d9366f8ca14a76b3dd569dac1fb9f569748.tar.gz
Merge pull request #59 from spicyjpeg/psxmdec
IRQ handler fix, .STR playback example, multiple library builds (v0.21)
Diffstat (limited to 'libpsn00b/include/psxcd.h')
-rw-r--r--libpsn00b/include/psxcd.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/libpsn00b/include/psxcd.h b/libpsn00b/include/psxcd.h
index 03ee792..0460f20 100644
--- a/libpsn00b/include/psxcd.h
+++ b/libpsn00b/include/psxcd.h
@@ -55,8 +55,10 @@
#define CdlModeAP 0x02
#define CdlModeRept 0x04
#define CdlModeSF 0x08
-#define CdlModeSize0 0x10
-#define CdlModeSize1 0x20
+//#define CdlModeSize0 0x10
+//#define CdlModeSize1 0x20
+#define CdlModeIgnore 0x10
+#define CdlModeSize 0x20
#define CdlModeRT 0x40
#define CdlModeSpeed 0x80
@@ -143,8 +145,10 @@ int CdControlF(uint8_t com, const void *param);
int CdSync(int mode, uint8_t *result);
uint32_t CdSyncCallback(CdlCB func);
-long CdReadyCallback(CdlCB func);
+int CdReadyCallback(CdlCB func);
int CdGetSector(void *madr, int size);
+int CdGetSector2(void *madr, int size);
+int CdDataSync(int mode);
CdlFILE* CdSearchFile(CdlFILE *loc, const char *filename);
@@ -164,7 +168,7 @@ void CdCloseDir(CdlDIR* dir);
int CdGetVolumeLabel(char* label);
-long* CdAutoPauseCallback(void(*func)());
+int* CdAutoPauseCallback(void(*func)());
int CdIsoError();
int CdLoadSession(int session);