PSPSDK 2024-12-24
Loading...
Searching...
No Matches
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
 
SceInt32 sceMp3GetFrameNum (SceInt32 handle)
 sceMp3GetFrameNum
 
SceInt32 sceMp3ResetPlayPositionByFrame (SceInt32 handle, SceUInt32 frame)
 sceMp3ResetPlayPositionByFrame
 
SceInt32 sceMp3GetMPEGVersion (SceInt32 handle)
 sceMp3GetMPEGVersion
 
SceInt32 sceMp3LowLevelInit (SceInt32 handle, SceUChar8 *src)
 sceMp3LowLevelInit
 
SceInt32 sceMp3LowLevelDecode (SceInt32 handle, SceUChar8 *mp3src, SceUInt32 *mp3srcused, SceShort16 *pcmdst, SceUInt32 *pcmdstoutsz)
 sceMp3LowLevelDecode
 

Typedef Documentation

◆ SceMp3InitArg

Function Documentation

◆ sceMp3CheckStreamDataNeeded()

SceInt32 sceMp3CheckStreamDataNeeded ( SceInt32  handle)

sceMp3CheckStreamDataNeeded

Parameters
handle- sceMp3 handle
Returns
1 if more stream data is needed, < 0 on error.

◆ sceMp3Decode()

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.

◆ sceMp3GetBitRate()

SceInt32 sceMp3GetBitRate ( SceInt32  handle)

sceMp3GetBitRate

Parameters
handle- sceMp3 handle
Returns
Bitrate of the mp3, < 0 on error.

◆ sceMp3GetFrameNum()

SceInt32 sceMp3GetFrameNum ( SceInt32  handle)

sceMp3GetFrameNum

Parameters
handle- sceMp3 handle
Returns
Number of audio frames, < 0 on error

◆ sceMp3GetInfoToAddStreamData()

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.

◆ sceMp3GetLoopNum()

SceInt32 sceMp3GetLoopNum ( SceInt32  handle)

sceMp3GetLoopNum

Parameters
handle- sceMp3 handle
Returns
Number of loops, < 0 on error.

◆ sceMp3GetMaxOutputSample()

SceInt32 sceMp3GetMaxOutputSample ( SceInt32  handle)

sceMp3GetMaxOutputSample

Parameters
handle- sceMp3 handle
Returns
Number of max samples to output, < 0 on error.

◆ sceMp3GetMp3ChannelNum()

SceInt32 sceMp3GetMp3ChannelNum ( SceInt32  handle)

sceMp3GetMp3ChannelNum

Parameters
handle- sceMp3 handle
Returns
Number of channels of the mp3, < 0 on error.

◆ sceMp3GetMPEGVersion()

SceInt32 sceMp3GetMPEGVersion ( SceInt32  handle)

sceMp3GetMPEGVersion

Parameters
handle- sceMp3 handle
Returns
MPEG Version, < 0 on error

◆ sceMp3GetSamplingRate()

SceInt32 sceMp3GetSamplingRate ( SceInt32  handle)

sceMp3GetSamplingRate

Parameters
handle- sceMp3 handle
Returns
Sampling rate of the mp3, < 0 on error.

◆ sceMp3GetSumDecodedSample()

SceInt32 sceMp3GetSumDecodedSample ( SceInt32  handle)

sceMp3GetSumDecodedSample

Parameters
handle- sceMp3 handle
Returns
Number of decoded samples, < 0 on error.

◆ sceMp3Init()

SceInt32 sceMp3Init ( SceInt32  handle)

sceMp3Init

Parameters
handle- sceMp3 handle
Returns
0 if success, < 0 on error.

◆ sceMp3InitResource()

SceInt32 sceMp3InitResource ( )

sceMp3InitResource

Returns
0 if success, < 0 on error.

◆ sceMp3LowLevelDecode()

SceInt32 sceMp3LowLevelDecode ( SceInt32  handle,
SceUChar8 mp3src,
SceUInt32 mp3srcused,
SceShort16 pcmdst,
SceUInt32 pcmdstoutsz 
)

sceMp3LowLevelDecode

Parameters
handle- sceMp3 handle
mp3src- Pointer to a buffer to contain raw mp3 stream data
mp3srcused- mp3 data size consumed by decoding
pcmdst- Pointer to destination pcm samples buffer
pcmdstoutsz- Size of pcm data output by decoding
Returns
0 if success, < 0 on error.

◆ sceMp3LowLevelInit()

SceInt32 sceMp3LowLevelInit ( SceInt32  handle,
SceUChar8 src 
)

sceMp3LowLevelInit

Parameters
handle- sceMp3 handle
src- Pointer to a buffer to contain raw mp3 stream data
Returns
0 if success, < 0 on error.

◆ sceMp3NotifyAddStreamData()

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.

◆ sceMp3ReleaseMp3Handle()

SceInt32 sceMp3ReleaseMp3Handle ( SceInt32  handle)

sceMp3ReleaseMp3Handle

Parameters
handle- sceMp3 handle
Returns
0 if success, < 0 on error.

◆ sceMp3ReserveMp3Handle()

SceInt32 sceMp3ReserveMp3Handle ( SceMp3InitArg args)

sceMp3ReserveMp3Handle

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

◆ sceMp3ResetPlayPosition()

SceInt32 sceMp3ResetPlayPosition ( SceInt32  handle)

sceMp3ResetPlayPosition

Parameters
handle- sceMp3 handle
Returns
0 if success, < 0 on error.

◆ sceMp3ResetPlayPositionByFrame()

SceInt32 sceMp3ResetPlayPositionByFrame ( SceInt32  handle,
SceUInt32  frame 
)

sceMp3ResetPlayPositionByFrame

Parameters
handle- sceMp3 handle
frame- frame
Returns
0 if success, < 0 on error.

◆ sceMp3SetLoopNum()

SceInt32 sceMp3SetLoopNum ( SceInt32  handle,
SceInt32  loop 
)

sceMp3SetLoopNum

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

◆ sceMp3TermResource()

SceInt32 sceMp3TermResource ( )

sceMp3TermResource

Returns
0 if success, < 0 on error.