Mercurial > hg > xmms-sid
comparison src/xs_player.h @ 660:b0743dc9165d
Change tabs to 4 spaces, everywhere.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 02 Apr 2008 22:10:05 +0300 |
parents | acaba070cf49 |
children | 4bf845090a25 |
comparison
equal
deleted
inserted
replaced
659:04ea91a61225 | 660:b0743dc9165d |
---|---|
9 #endif | 9 #endif |
10 | 10 |
11 struct xs_status_t; | 11 struct xs_status_t; |
12 | 12 |
13 typedef struct { | 13 typedef struct { |
14 gint plrIdent; | 14 gint plrIdent; |
15 gboolean (*plrProbe)(xs_file_t *); | 15 gboolean (*plrProbe)(xs_file_t *); |
16 gboolean (*plrInit)(struct xs_status_t *); | 16 gboolean (*plrInit)(struct xs_status_t *); |
17 void (*plrClose)(struct xs_status_t *); | 17 void (*plrClose)(struct xs_status_t *); |
18 gboolean (*plrInitSong)(struct xs_status_t *); | 18 gboolean (*plrInitSong)(struct xs_status_t *); |
19 guint (*plrFillBuffer)(struct xs_status_t *, gchar *, guint); | 19 guint (*plrFillBuffer)(struct xs_status_t *, gchar *, guint); |
20 gboolean (*plrLoadSID)(struct xs_status_t *, gchar *); | 20 gboolean (*plrLoadSID)(struct xs_status_t *, gchar *); |
21 void (*plrDeleteSID)(struct xs_status_t *); | 21 void (*plrDeleteSID)(struct xs_status_t *); |
22 xs_tuneinfo_t* (*plrGetSIDInfo)(const gchar *); | 22 xs_tuneinfo_t* (*plrGetSIDInfo)(const gchar *); |
23 gboolean (*plrUpdateSIDInfo)(struct xs_status_t *); | 23 gboolean (*plrUpdateSIDInfo)(struct xs_status_t *); |
24 void (*plrFlush)(struct xs_status_t *); | 24 void (*plrFlush)(struct xs_status_t *); |
25 } xs_player_t; | 25 } xs_player_t; |
26 | 26 |
27 | 27 |
28 typedef struct xs_status_t { | 28 typedef struct xs_status_t { |
29 gint audioFrequency, /* Audio settings */ | 29 gint audioFrequency, /* Audio settings */ |
30 audioChannels, | 30 audioChannels, |
31 audioBitsPerSample, | 31 audioBitsPerSample, |
32 oversampleFactor; /* Factor of oversampling */ | 32 oversampleFactor; /* Factor of oversampling */ |
33 AFormat audioFormat; | 33 AFormat audioFormat; |
34 gboolean oversampleEnable; /* TRUE after sidEngine initialization, | 34 gboolean oversampleEnable; /* TRUE after sidEngine initialization, |
35 if xs_cfg.oversampleEnable == TRUE and | 35 if xs_cfg.oversampleEnable == TRUE and |
36 emulation backend supports oversampling. | 36 emulation backend supports oversampling. |
37 */ | 37 */ |
38 void *sidEngine; /* SID-emulation internal engine data */ | 38 void *sidEngine; /* SID-emulation internal engine data */ |
39 xs_player_t *sidPlayer; /* Selected player engine */ | 39 xs_player_t *sidPlayer; /* Selected player engine */ |
40 gboolean isError, isPlaying, isInitialized; | 40 gboolean isError, isPlaying, isInitialized; |
41 gint currSong, /* Current sub-tune */ | 41 gint currSong, /* Current sub-tune */ |
42 lastTime; | 42 lastTime; |
43 | 43 |
44 xs_tuneinfo_t *tuneInfo; | 44 xs_tuneinfo_t *tuneInfo; |
45 } xs_status_t; | 45 } xs_status_t; |
46 | 46 |
47 | 47 |
48 /* Global variables | 48 /* Global variables |
49 */ | 49 */ |
50 extern InputPlugin xs_plugin_ip; | 50 extern InputPlugin xs_plugin_ip; |
51 | 51 |
52 extern xs_status_t xs_status; | 52 extern xs_status_t xs_status; |
53 XS_MUTEX_H(xs_status); | 53 XS_MUTEX_H(xs_status); |
54 | 54 |
55 | 55 |
56 #ifdef __cplusplus | 56 #ifdef __cplusplus |
57 } | 57 } |