#include <psptypes.h>
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. | ||||
| int sceAtracAddStreamData | ( | int | atracID, | |
| unsigned int | bytesToAdd | |||
| ) |
| atracID | - the atrac ID |
| bytesToAdd | - Number of bytes read into location given by sceAtracGetStreamDataInfo(). |
| int sceAtracDecodeData | ( | int | atracID, | |
| u16 * | outSamples, | |||
| int * | outN, | |||
| int * | outEnd, | |||
| int * | outRemainFrame | |||
| ) |
Decode a frame of data.
| 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 |
| int sceAtracGetBitrate | ( | int | atracID, | |
| int * | outBitrate | |||
| ) |
Gets the bitrate.
| atracID | - the atracID | |
| outBitrate | - pointer to a integer that receives the bitrate in kbps |
| int sceAtracGetMaxSample | ( | int | atracID, | |
| int * | outMax | |||
| ) |
Gets the maximum number of samples of the atrac3 stream.
| atracID | - the atrac ID | |
| outMax | - pointer to a integer that receives the maximum number of samples. |
| int sceAtracGetNextSample | ( | int | atracID, | |
| int * | outN | |||
| ) |
Gets the number of samples of the next frame to be decoded.
| atracID | - the atrac ID | |
| outN | - pointer to receives the number of samples of the next frame. |
| int sceAtracGetRemainFrame | ( | int | atracID, | |
| int * | outRemainFrame | |||
| ) |
Gets the remaining (not decoded) number of frames.
| 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 |
| int sceAtracGetStreamDataInfo | ( | int | atracID, | |
| u8 ** | writePointer, | |||
| u32 * | availableBytes, | |||
| u32 * | readOffset | |||
| ) |
| 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 |
| int sceAtracReleaseAtracID | ( | int | atracID | ) |
It releases an atrac ID.
| atracID | - the atrac ID to release |
| int sceAtracSetDataAndGetID | ( | void * | buf, | |
| SceSize | bufsize | |||
| ) |
Creates a new Atrac ID from the specified data.
| buf | - the buffer holding the atrac3 data, including the RIFF/WAVE header. | |
| bufsize | - the size of the buffer pointed by buf |
| int sceAtracSetLoopNum | ( | int | atracID, | |
| int | nloops | |||
| ) |
Sets the number of loops for this atrac ID.
| atracID | - the atracID | |
| nloops | - the number of loops to set |
1.5.2