forked from mywave82/opencubicplayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayer.h
36 lines (30 loc) · 962 Bytes
/
player.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef __PLAYER_H
#define __PLAYER_H
#define PLR_STEREO 1
#define PLR_16BIT 2
#define PLR_SIGNEDOUT 4
#define PLR_REVERSESTEREO 8
#define PLR_RESTRICTED 16
struct ocpfilehandle_t;
enum
{
plrGetSampleStereo=1
};
extern unsigned int plrRate;
extern int plrOpt;
extern int (*plrPlay)(void **buf, unsigned int *len, struct ocpfilehandle_t *source_file);
extern void (*plrStop)(void);
extern void (*plrSetOptions)(uint32_t rate, int opt);
extern int (*plrGetBufPos)(void);
extern int (*plrGetPlayPos)(void);
extern void (*plrAdvanceTo)(unsigned int pos);
extern uint32_t (*plrGetTimer)(void);
extern void (*plrIdle)(void);
#ifdef PLR_DEBUG
extern char *(*plrDebug)(void);
#endif
extern int plrOpenPlayer(void **buf, uint32_t *len, uint32_t blen, struct ocpfilehandle_t *source_file);
extern void plrClosePlayer(void);
extern void plrGetRealMasterVolume(int *l, int *r);
extern void plrGetMasterSample(int16_t *s, uint32_t len, uint32_t rate, int opt);
#endif