summaryrefslogtreecommitdiff
path: root/include/user/audiocodec.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/user/audiocodec.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/user/audiocodec.h b/include/user/audiocodec.h
new file mode 100644
index 0000000..2628fd4
--- /dev/null
+++ b/include/user/audiocodec.h
@@ -0,0 +1,26 @@
+#ifndef _DOLCESDK_PSP2_AUDIOCODEC_H_
+#define _DOLCESDK_PSP2_AUDIOCODEC_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define SCE_AUDIOCODEC_ATX (0x00001000) //AT3PLUS?
+#define SCE_AUDIOCODEC_AT3 (0x00001001)
+#define SCE_AUDIOCODEC_MP3 (0x00001002)
+#define SCE_AUDIOCODEC_AAC (0x00001003)
+#define SCE_AUDIOCODEC_AT9 (0x00001004)
+
+typedef struct SceAudiocodecControl SceAudiocodecControl;
+
+int sceAudiocodecInit(SceAudiocodecControl *ctrl, int codecType);
+
+int sceAudiocodecQueryMemSize(SceAudiocodecControl *ctrl, int codecType);
+
+int sceAudiocodecDecode(SceAudiocodecControl *ctrl, int codecType);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _DOLCESDK_PSP2_AUDIOCODEC_H_ */