pspsdk-1.0+beta2
pspatrac3.h
Go to the documentation of this file.
1 /*
2  * PSP Software Development Kit - http://www.pspdev.org
3  * -----------------------------------------------------------------------
4  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5  *
6  * pspatrac3.h - Prototypes for the sceAtrac3plus library
7  *
8  * Copyright (c) 2006 moonlight
9  *
10  * $Id: pspatrac3.h 2433 2008-10-15 10:00:27Z iwn $
11  */
12 #ifndef __LIBATRAC3_H__
13 #define __LIBATRAC3_H__
14 
15 #include <psptypes.h>
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
29 int sceAtracSetDataAndGetID(void *buf, SceSize bufsize);
30 
45 int sceAtracDecodeData(int atracID, u16 *outSamples, int *outN, int *outEnd, int *outRemainFrame);
46 
57 int sceAtracGetRemainFrame(int atracID, int *outRemainFrame);
58 
70 int sceAtracGetStreamDataInfo(int atracID, u8** writePointer, u32* availableBytes, u32* readOffset);
71 
79 int sceAtracAddStreamData(int atracID, unsigned int bytesToAdd);
80 
90 int sceAtracGetBitrate(int atracID, int *outBitrate);
91 
101 int sceAtracSetLoopNum(int atracID, int nloops);
102 
111 int sceAtracReleaseAtracID(int atracID);
112 
122 int sceAtracGetNextSample(int atracID, int *outN);
123 
133 int sceAtracGetMaxSample(int atracID, int *outMax);
134 
135 #ifdef __cplusplus
136 }
137 #endif
138 
139 #endif