00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef __LIBATRAC3_H__
00013 #define __LIBATRAC3_H__
00014
00015 #include <psptypes.h>
00016
00017 #ifdef __cplusplus
00018 extern "C" {
00019 #endif
00020
00029 int sceAtracSetDataAndGetID(void *buf, SceSize bufsize);
00030
00045 int sceAtracDecodeData(int atracID, u16 *outSamples, int *outN, int *outEnd, int *outRemainFrame);
00046
00057 int sceAtracGetRemainFrame(int atracID, int *outRemainFrame);
00058
00070 int sceAtracGetStreamDataInfo(int atracID, u8** writePointer, u32* availableBytes, u32* readOffset);
00071
00079 int sceAtracAddStreamData(int atracID, unsigned int bytesToAdd);
00080
00090 int sceAtracGetBitrate(int atracID, int *outBitrate);
00091
00101 int sceAtracSetLoopNum(int atracID, int nloops);
00102
00111 int sceAtracReleaseAtracID(int atracID);
00112
00122 int sceAtracGetNextSample(int atracID, int *outN);
00123
00133 int sceAtracGetMaxSample(int atracID, int *outMax);
00134
00135 #ifdef __cplusplus
00136 }
00137 #endif
00138
00139 #endif