pspsdk-1.0+beta2
Main Page
Modules
Data Structures
Files
File List
Globals
pspmp3.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
* pspmp3.h - Prototypes for the sceMp3 library
7
*
8
* Copyright (c) 2008 David Perry <tias_dp@hotmail.com>
9
* Copyright (c) 2008 Alexander Berl <raphael@fx-world.org>
10
*
11
* $Id: $
12
*/
13
14
#ifndef __SCELIBMP3_H__
15
#define __SCELIBMP3_H__
16
17
#include <
psptypes.h
>
18
19
#ifdef __cplusplus
20
extern
"C"
{
21
#endif
22
23
typedef
struct
SceMp3InitArg
{
25
SceUInt32
mp3StreamStart
;
27
SceUInt32
unk1
;
29
SceUInt32
mp3StreamEnd
;
31
SceUInt32
unk2
;
33
SceVoid
*
mp3Buf
;
35
SceInt32
mp3BufSize
;
37
SceVoid
*
pcmBuf
;
39
SceInt32
pcmBufSize
;
40
}
SceMp3InitArg
;
41
49
SceInt32
sceMp3ReserveMp3Handle
(
SceMp3InitArg
* args);
50
58
SceInt32
sceMp3ReleaseMp3Handle
(
SceInt32
handle);
59
65
SceInt32
sceMp3InitResource
();
66
72
SceInt32
sceMp3TermResource
();
73
81
SceInt32
sceMp3Init
(
SceInt32
handle);
82
91
SceInt32
sceMp3Decode
(
SceInt32
handle,
SceShort16
** dst);
92
103
SceInt32
sceMp3GetInfoToAddStreamData
(
SceInt32
handle,
SceUChar8
** dst,
SceInt32
* towrite,
SceInt32
* srcpos);
104
113
SceInt32
sceMp3NotifyAddStreamData
(
SceInt32
handle,
SceInt32
size
);
114
122
SceInt32
sceMp3CheckStreamDataNeeded
(
SceInt32
handle);
123
132
SceInt32
sceMp3SetLoopNum
(
SceInt32
handle,
SceInt32
loop);
133
141
SceInt32
sceMp3GetLoopNum
(
SceInt32
handle);
142
150
SceInt32
sceMp3GetSumDecodedSample
(
SceInt32
handle);
151
159
SceInt32
sceMp3GetMaxOutputSample
(
SceInt32
handle);
160
168
SceInt32
sceMp3GetSamplingRate
(
SceInt32
handle);
169
177
SceInt32
sceMp3GetBitRate
(
SceInt32
handle);
178
186
SceInt32
sceMp3GetMp3ChannelNum
(
SceInt32
handle);
187
195
SceInt32
sceMp3ResetPlayPosition
(
SceInt32
handle);
196
197
198
#ifdef __cplusplus
199
}
200
#endif
201
202
#endif
src
mp3
pspmp3.h
Generated on Sat Apr 9 2016 07:00:25 for pspsdk-1.0+beta2 by
1.8.1.2