Mercurial > hg > xmms-sid
comparison src/xs_player.h @ 657:acaba070cf49
Lots of cosmetic code cleanups; synced the de-gettextification from Audacious-SID, I suppose it makes some sense ...
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 02 Apr 2008 19:46:59 +0300 |
parents | eafcd84a8c59 |
children | b0743dc9165d |
comparison
equal
deleted
inserted
replaced
656:e9257f006f41 | 657:acaba070cf49 |
---|---|
6 | 6 |
7 #ifdef __cplusplus | 7 #ifdef __cplusplus |
8 extern "C" { | 8 extern "C" { |
9 #endif | 9 #endif |
10 | 10 |
11 struct t_xs_status; | 11 struct xs_status_t; |
12 | 12 |
13 typedef struct { | 13 typedef struct { |
14 gint plrIdent; | 14 gint plrIdent; |
15 gboolean (*plrProbe)(t_xs_file *); | 15 gboolean (*plrProbe)(xs_file_t *); |
16 gboolean (*plrInit)(struct t_xs_status *); | 16 gboolean (*plrInit)(struct xs_status_t *); |
17 void (*plrClose)(struct t_xs_status *); | 17 void (*plrClose)(struct xs_status_t *); |
18 gboolean (*plrInitSong)(struct t_xs_status *); | 18 gboolean (*plrInitSong)(struct xs_status_t *); |
19 guint (*plrFillBuffer)(struct t_xs_status *, gchar *, guint); | 19 guint (*plrFillBuffer)(struct xs_status_t *, gchar *, guint); |
20 gboolean (*plrLoadSID)(struct t_xs_status *, gchar *); | 20 gboolean (*plrLoadSID)(struct xs_status_t *, gchar *); |
21 void (*plrDeleteSID)(struct t_xs_status *); | 21 void (*plrDeleteSID)(struct xs_status_t *); |
22 t_xs_tuneinfo* (*plrGetSIDInfo)(const gchar *); | 22 xs_tuneinfo_t* (*plrGetSIDInfo)(const gchar *); |
23 gboolean (*plrUpdateSIDInfo)(struct t_xs_status *); | 23 gboolean (*plrUpdateSIDInfo)(struct xs_status_t *); |
24 void (*plrFlush)(struct t_xs_status *); | 24 void (*plrFlush)(struct xs_status_t *); |
25 } t_xs_player; | 25 } xs_player_t; |
26 | 26 |
27 | 27 |
28 typedef struct t_xs_status { | 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 t_xs_player *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 t_xs_tuneinfo *tuneInfo; | 44 xs_tuneinfo_t *tuneInfo; |
45 } t_xs_status; | 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 t_xs_status 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 } |