Go to the source code of this file.
Functions |
int | sceAtracSetDataAndGetID (void *buf, SceSize bufsize) |
| Creates a new Atrac ID from the specified data.
|
int | sceAtracDecodeData (int atracID, u16 *outSamples, int *outN, int *outEnd, int *outRemainFrame) |
| Decode a frame of data.
|
int | sceAtracGetRemainFrame (int atracID, int *outRemainFrame) |
| Gets the remaining (not decoded) number of frames.
|
int | sceAtracGetStreamDataInfo (int atracID, u8 **writePointer, u32 *availableBytes, u32 *readOffset) |
int | sceAtracAddStreamData (int atracID, unsigned int bytesToAdd) |
int | sceAtracGetBitrate (int atracID, int *outBitrate) |
| Gets the bitrate.
|
int | sceAtracSetLoopNum (int atracID, int nloops) |
| Sets the number of loops for this atrac ID.
|
int | sceAtracReleaseAtracID (int atracID) |
| It releases an atrac ID.
|
int | sceAtracGetNextSample (int atracID, int *outN) |
| Gets the number of samples of the next frame to be decoded.
|
int | sceAtracGetMaxSample (int atracID, int *outMax) |
| Gets the maximum number of samples of the atrac3 stream.
|
Function Documentation
int sceAtracAddStreamData |
( |
int |
atracID, |
|
|
unsigned int |
bytesToAdd |
|
) |
| |
- Parameters
-
- Returns
- < 0 on error, otherwise 0
int sceAtracDecodeData |
( |
int |
atracID, |
|
|
u16 * |
outSamples, |
|
|
int * |
outN, |
|
|
int * |
outEnd, |
|
|
int * |
outRemainFrame |
|
) |
| |
Decode a frame of data.
- Parameters
-
atracID | - the atrac ID |
outSamples | - pointer to a buffer that receives the decoded data of the current frame |
outN | - pointer to a integer that receives the number of audio samples of the decoded frame |
outEnd | - pointer to a integer that receives a boolean value indicating if the decoded frame is the last one |
outRemainFrame | - pointer to a integer that receives either -1 if all at3 data is already on memory, or the remaining (not decoded yet) frames at memory if not all at3 data is on memory |
- Returns
- < 0 on error, otherwise 0
int sceAtracGetBitrate |
( |
int |
atracID, |
|
|
int * |
outBitrate |
|
) |
| |
Gets the bitrate.
- Parameters
-
atracID | - the atracID |
outBitrate | - pointer to a integer that receives the bitrate in kbps |
- Returns
- < 0 on error, otherwise 0
int sceAtracGetMaxSample |
( |
int |
atracID, |
|
|
int * |
outMax |
|
) |
| |
Gets the maximum number of samples of the atrac3 stream.
- Parameters
-
atracID | - the atrac ID |
outMax | - pointer to a integer that receives the maximum number of samples. |
- Returns
- < 0 on error, otherwise 0
int sceAtracGetNextSample |
( |
int |
atracID, |
|
|
int * |
outN |
|
) |
| |
Gets the number of samples of the next frame to be decoded.
- Parameters
-
atracID | - the atrac ID |
outN | - pointer to receives the number of samples of the next frame. |
- Returns
- < 0 on error, otherwise 0
int sceAtracGetRemainFrame |
( |
int |
atracID, |
|
|
int * |
outRemainFrame |
|
) |
| |
Gets the remaining (not decoded) number of frames.
- Parameters
-
atracID | - the atrac ID |
outRemainFrame | - pointer to a integer that receives either -1 if all at3 data is already on memory, or the remaining (not decoded yet) frames at memory if not all at3 data is on memory |
- Returns
- < 0 on error, otherwise 0
int sceAtracGetStreamDataInfo |
( |
int |
atracID, |
|
|
u8 ** |
writePointer, |
|
|
u32 * |
availableBytes, |
|
|
u32 * |
readOffset |
|
) |
| |
- Parameters
-
atracID | - the atrac ID |
writePointer | - Pointer to where to read the atrac data |
availableBytes | - Number of bytes available at the writePointer location |
readOffset | - Offset where to seek into the atrac file before reading |
- Returns
- < 0 on error, otherwise 0
int sceAtracReleaseAtracID |
( |
int |
atracID | ) |
|
It releases an atrac ID.
- Parameters
-
atracID | - the atrac ID to release |
- Returns
- < 0 on error
int sceAtracSetDataAndGetID |
( |
void * |
buf, |
|
|
SceSize |
bufsize |
|
) |
| |
Creates a new Atrac ID from the specified data.
- Parameters
-
buf | - the buffer holding the atrac3 data, including the RIFF/WAVE header. |
bufsize | - the size of the buffer pointed by buf |
- Returns
- the new atrac ID, or < 0 on error
int sceAtracSetLoopNum |
( |
int |
atracID, |
|
|
int |
nloops |
|
) |
| |
Sets the number of loops for this atrac ID.
- Parameters
-
atracID | - the atracID |
nloops | - the number of loops to set |
- Returns
- < 0 on error, otherwise 0