#ifndef __SCEATRAC_H__
#define __SCEATRAC_H__

int (* sceAtracAddStreamData) (int atracID, unsigned int bytesToAdd) = (void *) (BASE_OFFSET + 0xe6fd0);
int (* sceAtracDecodeData) (int atracID, u16 *outSamples, int *outN, int *outEnd, int *outRemainFrame) = (void *) (BASE_OFFSET + 0xe6fc0);
// (* sceAtracEndEntry) (__) = (void *) 0x09eb58b4;
void (* sceAtracGetAtracID) (void) = (void *) (BASE_OFFSET + 0xe6fa8); // WTF is this function?
int (* sceAtracGetBitrate) (int atracID, int *outBitrate) = (void *) 0x09eb58fc;
// (* sceAtracGetBufferInfoForReseting) (__) = (void *) 0x09eb5908;
// (* sceAtracGetChannel) (__) = (void *) 0x09eb58f0;
// (* sceAtracGetInternalErrorInfo) (__) = (void *) 0x09eb5910;
void (* sceAtracGetInternalErrorInfo) (void) = (void *) (BASE_OFFSET + 0xe6fe0); // WTF is this function?
// (* sceAtracGetLoopStatus) (__) = (void *) 0x09eb5900;
int (* sceAtracGetMaxSample) (int atracID, int *outMax) = (void *) 0x09eb58f4;
// (* sceAtracGetNextDecodePosition) (__) = (void *) 0x09eb58e8;
int (* sceAtracGetNextSample) (int atracID, int *outN) = (void *) 0x09eb58f8;
int (* sceAtracGetRemainFrame) (int atracID, int *outRemainFrame) = (void *) 0x09eb58d4;
// (* sceAtracGetSecondBufferInfo) (__) = (void *) 0x09eb58e0;
// (* sceAtracGetSoundSample) (__) = (void *) 0x09eb58ec;
int (* sceAtracGetStreamDataInfo) (int atracID, u8 **writePointer, u32 *availableBytes, u32 *readOffset) = (void *) (BASE_OFFSET + 0xe6fc8);
int (* sceAtracReleaseAtracID) (int atracID) = (void *) (BASE_OFFSET + 0xe6fb0);
// (* sceAtracResetPlayPosition) (__) = (void *) 0x09eb590c;
// (* sceAtracSetData) (__) = (void *) 0x09eb58c0;
void (* sceAtracSetData) (void *buf, SceSize bufsize) = (void *) (BASE_OFFSET + 0xe6fb8);
int (* sceAtracSetDataAndGetID) (void *buf, SceSize bufsize) = (void *) 0x09eb58c8;
// (* sceAtracSetHalfwayBuffer) (__) = (void *) 0x09eb58c4;
// (* sceAtracSetHalfwayBufferAndGetID) (__) = (void *) 0x09eb58cc;
int (* sceAtracSetLoopNum) (int atracID, int nloops) = (void *) (BASE_OFFSET + 0xe6fd8);
// (* sceAtracSetSecondBuffer) (__) = (void *) 0x09eb58e4;
// (* sceAtracStartEntry) (__) = (void *) 0x09eb58b0;

#endif
