comparison src/xmms-sid.h @ 526:fa95d942f226

Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 20 Feb 2007 16:53:05 +0000
parents ecd827e89c8a
children bc548249464a
comparison
equal deleted inserted replaced
525:9395961504c1 526:fa95d942f226
18 18
19 You should have received a copy of the GNU General Public License along 19 You should have received a copy of the GNU General Public License along
20 with this program; if not, write to the Free Software Foundation, Inc., 20 with this program; if not, write to the Free Software Foundation, Inc.,
21 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 21 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 */ 22 */
23 #ifndef _XMMS_SID_H 23 #ifndef XMMS_SID_H
24 #define _XMMS_SID_H 24 #define XMMS_SID_H
25 25
26 #include "xs_support.h" 26 #include "xs_support.h"
27 #include <pthread.h> 27 #include <pthread.h>
28 28
29 #ifdef __cplusplus 29 #ifdef __cplusplus
163 gint nsubTunes, startTune; 163 gint nsubTunes, startTune;
164 t_xs_subtuneinfo *subTunes; 164 t_xs_subtuneinfo *subTunes;
165 } t_xs_tuneinfo; 165 } t_xs_tuneinfo;
166 166
167 167
168 struct t_xs_status;
169
170 typedef struct {
171 gint plrIdent;
172 gboolean (*plrIsOurFile)(t_xs_file *);
173 gboolean (*plrInit)(struct t_xs_status *);
174 void (*plrClose)(struct t_xs_status *);
175 gboolean (*plrInitSong)(struct t_xs_status *);
176 guint (*plrFillBuffer)(struct t_xs_status *, gchar *, guint);
177 gboolean (*plrLoadSID)(struct t_xs_status *, gchar *);
178 void (*plrDeleteSID)(struct t_xs_status *);
179 t_xs_tuneinfo* (*plrGetSIDInfo)(gchar *);
180 gboolean (*plrUpdateSIDInfo)(struct t_xs_status *);
181 } t_xs_player;
182
183
184 typedef struct t_xs_status {
185 gint audioFrequency, /* Audio settings */
186 audioChannels,
187 audioBitsPerSample,
188 oversampleFactor; /* Factor of oversampling */
189 AFormat audioFormat;
190 gboolean oversampleEnable; /* TRUE after sidEngine initialization,
191 if xs_cfg.oversampleEnable == TRUE and
192 emulation backend supports oversampling.
193 */
194 void *sidEngine; /* SID-emulation internal engine data */
195 t_xs_player *sidPlayer; /* Selected player engine */
196 gboolean isError, isPlaying, isInitialized;
197 gint currSong, /* Current sub-tune */
198 lastTime;
199
200 t_xs_tuneinfo *tuneInfo;
201 } t_xs_status;
202
203
204 /* Global variables 168 /* Global variables
205 */ 169 */
206 extern InputPlugin xs_plugin_ip; 170 extern InputPlugin xs_plugin_ip;
207
208 extern t_xs_status xs_status;
209 XS_MUTEX_H(xs_status);
210
211 171
212 172
213 /* Plugin function prototypes 173 /* Plugin function prototypes
214 */ 174 */
215 void xs_init(void); 175 void xs_init(void);
248 #endif 208 #endif
249 209
250 #ifdef __cplusplus 210 #ifdef __cplusplus
251 } 211 }
252 #endif 212 #endif
253 #endif /* _XMMS_SID_H */ 213 #endif /* XMMS_SID_H */