File: musiclistio.h

package info (click to toggle)
searchandrescue 0.8.2-10
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,656 kB
  • ctags: 6,111
  • sloc: ansic: 89,072; cpp: 7,691; sh: 90; makefile: 80
file content (44 lines) | stat: -rw-r--r-- 887 bytes parent folder | download | duplicates (6)
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
37
38
39
40
41
42
43
44
/*
 *                       Music File Reference List IO
 */
#ifndef MUSICLISTIO_H
#define MUSICLISTIO_H

#include <sys/types.h>
#include "sound.h"


/*
 *	Music Reference Flags:
 */
#define SAR_MUSIC_REF_FLAGS_REPEAT	(1 << 1)
#define SAR_MUSIC_REF_FLAGS_FADE_IN	(1 << 2)
#define SAR_MUSIC_REF_FLAGS_FADE_OUT	(1 << 3)

/*
 *	Music Reference:
 */
typedef struct {

	int		id;		/* One of SAR_MUSIC_ID_* */
	char		*filename;
	unsigned int	flags;		/* Any of SAR_MUSIC_REF_FLAGS_* */

} sar_music_ref_struct;
#define SAR_MUSIC_REF(p)	((sar_music_ref_struct *)(p))


extern sar_music_ref_struct *SARMusicMatchPtr(
	sar_music_ref_struct **ml, int total,
	int id, int *music_ref_num
);

extern void SARMusicListDeleteAll(
	sar_music_ref_struct ***ml, int *total
);
extern int SARMusicListLoadFromFile(
	const char *filename,
	sar_music_ref_struct ***ml, int *total
);

#endif	/* MUSICLISTIO_H */