pspsdk-1.0+beta2
pspmp3.h File Reference
#include <psptypes.h>
Include dependency graph for pspmp3.h:

Go to the source code of this file.

Data Structures

struct  SceMp3InitArg

Typedefs

typedef struct SceMp3InitArg SceMp3InitArg

Functions

SceInt32 sceMp3ReserveMp3Handle (SceMp3InitArg *args)
 sceMp3ReserveMp3Handle
SceInt32 sceMp3ReleaseMp3Handle (SceInt32 handle)
 sceMp3ReleaseMp3Handle
SceInt32 sceMp3InitResource ()
 sceMp3InitResource
SceInt32 sceMp3TermResource ()
 sceMp3TermResource
SceInt32 sceMp3Init (SceInt32 handle)
 sceMp3Init
SceInt32 sceMp3Decode (SceInt32 handle, SceShort16 **dst)
 sceMp3Decode
SceInt32 sceMp3GetInfoToAddStreamData (SceInt32 handle, SceUChar8 **dst, SceInt32 *towrite, SceInt32 *srcpos)
 sceMp3GetInfoToAddStreamData
SceInt32 sceMp3NotifyAddStreamData (SceInt32 handle, SceInt32 size)
 sceMp3NotifyAddStreamData
SceInt32 sceMp3CheckStreamDataNeeded (SceInt32 handle)
 sceMp3CheckStreamDataNeeded
SceInt32 sceMp3SetLoopNum (SceInt32 handle, SceInt32 loop)
 sceMp3SetLoopNum
SceInt32 sceMp3GetLoopNum (SceInt32 handle)
 sceMp3GetLoopNum
SceInt32 sceMp3GetSumDecodedSample (SceInt32 handle)
 sceMp3GetSumDecodedSample
SceInt32 sceMp3GetMaxOutputSample (SceInt32 handle)
 sceMp3GetMaxOutputSample
SceInt32 sceMp3GetSamplingRate (SceInt32 handle)
 sceMp3GetSamplingRate
SceInt32 sceMp3GetBitRate (SceInt32 handle)
 sceMp3GetBitRate
SceInt32 sceMp3GetMp3ChannelNum (SceInt32 handle)
 sceMp3GetMp3ChannelNum
SceInt32 sceMp3ResetPlayPosition (SceInt32 handle)
 sceMp3ResetPlayPosition

Typedef Documentation

typedef struct SceMp3InitArg SceMp3InitArg

Function Documentation

SceInt32 sceMp3CheckStreamDataNeeded ( SceInt32  handle)

sceMp3CheckStreamDataNeeded

Parameters
handle- sceMp3 handle
Returns
1 if more stream data is needed, < 0 on error.
SceInt32 sceMp3Decode ( SceInt32  handle,
SceShort16 **  dst 
)

sceMp3Decode

Parameters
handle- sceMp3 handle
dst- Pointer to destination pcm samples buffer
Returns
number of bytes in decoded pcm buffer, < 0 on error.
SceInt32 sceMp3GetBitRate ( SceInt32  handle)

sceMp3GetBitRate

Parameters
handle- sceMp3 handle
Returns
Bitrate of the mp3
SceInt32 sceMp3GetInfoToAddStreamData ( SceInt32  handle,
SceUChar8 **  dst,
SceInt32 towrite,
SceInt32 srcpos 
)

sceMp3GetInfoToAddStreamData

Parameters
handle- sceMp3 handle
dst- Pointer to stream data buffer
towrite- Space remaining in stream data buffer
srcpos- Position in source stream to start reading from
Returns
0 if success, < 0 on error.
SceInt32 sceMp3GetLoopNum ( SceInt32  handle)

sceMp3GetLoopNum

Parameters
handle- sceMp3 handle
Returns
Number of loops
SceInt32 sceMp3GetMaxOutputSample ( SceInt32  handle)

sceMp3GetMaxOutputSample

Parameters
handle- sceMp3 handle
Returns
Number of max samples to output
SceInt32 sceMp3GetMp3ChannelNum ( SceInt32  handle)

sceMp3GetMp3ChannelNum

Parameters
handle- sceMp3 handle
Returns
Number of channels of the mp3
SceInt32 sceMp3GetSamplingRate ( SceInt32  handle)

sceMp3GetSamplingRate

Parameters
handle- sceMp3 handle
Returns
Sampling rate of the mp3
SceInt32 sceMp3GetSumDecodedSample ( SceInt32  handle)

sceMp3GetSumDecodedSample

Parameters
handle- sceMp3 handle
Returns
Number of decoded samples
SceInt32 sceMp3Init ( SceInt32  handle)

sceMp3Init

Parameters
handle- sceMp3 handle
Returns
0 if success, < 0 on error.
SceInt32 sceMp3InitResource ( )

sceMp3InitResource

Returns
0 if success, < 0 on error.
SceInt32 sceMp3NotifyAddStreamData ( SceInt32  handle,
SceInt32  size 
)

sceMp3NotifyAddStreamData

Parameters
handle- sceMp3 handle
size- number of bytes added to the stream data buffer
Returns
0 if success, < 0 on error.
SceInt32 sceMp3ReleaseMp3Handle ( SceInt32  handle)

sceMp3ReleaseMp3Handle

Parameters
handle- sceMp3 handle
Returns
0 if success, < 0 on error.
SceInt32 sceMp3ReserveMp3Handle ( SceMp3InitArg args)

sceMp3ReserveMp3Handle

Parameters
args- Pointer to SceMp3InitArg structure
Returns
sceMp3 handle on success, < 0 on error.
SceInt32 sceMp3ResetPlayPosition ( SceInt32  handle)

sceMp3ResetPlayPosition

Parameters
handle- sceMp3 handle
Returns
< 0 on error
SceInt32 sceMp3SetLoopNum ( SceInt32  handle,
SceInt32  loop 
)

sceMp3SetLoopNum

Parameters
handle- sceMp3 handle
loop- Number of loops
Returns
0 if success, < 0 on error.
SceInt32 sceMp3TermResource ( )

sceMp3TermResource

Returns
0 if success, < 0 on error.