Subversion Repositories mdb

Rev

Rev 32 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32 Rev 50
Line 24... Line 24...
24
#define PLAY_FWD		5		/* Fast forward file */
24
#define PLAY_FWD		5		/* Fast forward file */
25
#define PLAY_REW		6		/* Restart file from start */
25
#define PLAY_REW		6		/* Restart file from start */
26
#define PLAY_SKIP_FWD	7		/* Stop current file and play next in queue */
26
#define PLAY_SKIP_FWD	7		/* Stop current file and play next in queue */
27
#define PLAY_SKIP_REW	8		/* Stop current file and play previous in queue */
27
#define PLAY_SKIP_REW	8		/* Stop current file and play previous in queue */
28
#define PLAY_STOP_NOW	9		/* Stops playing in every case immediately */
28
#define PLAY_STOP_NOW	9		/* Stops playing in every case immediately */
-
 
29
#define PLAY_STACK		10		/* Stops playing what ever is currently playing and starts the file at the stack */
29
 
30
 
30
#define PLAY_STATUS_PLAY	1
31
#define PLAY_STATUS_PLAY	1
31
#define PLAY_STATUS_PAUSE	2
32
#define PLAY_STATUS_PAUSE	2
32
#define PLAY_STATUS_STOP	3
33
#define PLAY_STATUS_STOP	3
33
#define PLAY_STATUS_FWD		4
34
#define PLAY_STATUS_FWD		4
34
#define PLAY_STATUS_REW		5
35
#define PLAY_STATUS_REW		5
35
#define PLAY_STATUS_SKIPF	6
36
#define PLAY_STATUS_SKIPF	6
36
#define PLAY_STATUS_SKIPR	7
37
#define PLAY_STATUS_SKIPR	7
-
 
38
#define PLAY_STATUS_STACK	8
-
 
39
#define PLAY_STATUS_STPLAY	9
37
 
40
 
38
#define NOWPLAY			"/nowplaying.list"
41
#define NOWPLAY			"/nowplaying.list"
39
 
42
 
40
struct ST_PlayPars
43
struct ST_PlayPars
41
{
44
{
Line 73... Line 76...
73
extern int playerActive;
76
extern int playerActive;
74
extern int playerRepeat;
77
extern int playerRepeat;
75
extern int playerRandom;
78
extern int playerRandom;
76
extern int queueTotal;
79
extern int queueTotal;
77
extern ST_PLAYING playCurrent;
80
extern ST_PLAYING playCurrent;
78
extern QUEUE *pqueue;
81
extern QUEUE *pqueue;		/* The queue of files to play. */
-
 
82
extern QUEUE *qstack;		/* A stack of files to play. Has precedence about the queue! */
79
 
83
 
80
void *pthr_playfile(void *pV_data);
84
void *pthr_playfile(void *pV_data);
81
void appendToQueue(int s1, char *type, char *what);
85
void appendToQueue(int s1, char *type, char *what);
82
int playlistToQueue(int uid, int del);
86
int playlistToQueue(int uid, int del);
83
int QueueToPlaylist(int s1, char *user, char *playlist);
87
int QueueToPlaylist(int s1, char *user, char *playlist);
84
int readQueue();
88
int readQueue();
85
int scanQueue(int fd);
89
int scanQueue(int fd);
86
void freeQueue();
90
void freeQueue();
87
int check_command(int s1);
91
int check_command(int s1);
88
 
-
 
-
 
92
QUEUE *qstackAdd(int ID);		/* add an entry to the stack */
-
 
93
void qstackDelete(int ID);		/* remove an entry from the stack */
-
 
94
void qstackClear();				/* Delete the whole stack */
-
 
95
QUEUE *qstackNext();			/* Returns the next entry from the stack and removes it then */
89
#endif
96
#endif