comparison src/xs_player.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
children eafcd84a8c59
comparison
equal deleted inserted replaced
525:9395961504c1 526:fa95d942f226
1 #ifndef XS_PLAYER_H
2 #define XS_PLAYER_H
3
4 #include "xmms-sid.h"
5 #include "xs_config.h"
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10
11 struct t_xs_status;
12
13 typedef struct {
14 gint plrIdent;
15 gboolean (*plrProbe)(t_xs_file *);
16 gboolean (*plrInit)(struct t_xs_status *);
17 void (*plrClose)(struct t_xs_status *);
18 gboolean (*plrInitSong)(struct t_xs_status *);
19 guint (*plrFillBuffer)(struct t_xs_status *, gchar *, guint);
20 gboolean (*plrLoadSID)(struct t_xs_status *, gchar *);
21 void (*plrDeleteSID)(struct t_xs_status *);
22 t_xs_tuneinfo* (*plrGetSIDInfo)(gchar *);
23 gboolean (*plrUpdateSIDInfo)(struct t_xs_status *);
24 void (*plrFlush)(struct t_xs_status *);
25 } t_xs_player;
26
27
28 typedef struct t_xs_status {
29 gint audioFrequency, /* Audio settings */
30 audioChannels,
31 audioBitsPerSample,
32 oversampleFactor; /* Factor of oversampling */
33 AFormat audioFormat;
34 gboolean oversampleEnable; /* TRUE after sidEngine initialization,
35 if xs_cfg.oversampleEnable == TRUE and
36 emulation backend supports oversampling.
37 */
38 void *sidEngine; /* SID-emulation internal engine data */
39 t_xs_player *sidPlayer; /* Selected player engine */
40 gboolean isError, isPlaying, isInitialized;
41 gint currSong, /* Current sub-tune */
42 lastTime;
43
44 t_xs_tuneinfo *tuneInfo;
45 } t_xs_status;
46
47
48 /* Global variables
49 */
50 extern InputPlugin xs_plugin_ip;
51
52 extern t_xs_status xs_status;
53 XS_MUTEX_H(xs_status);
54
55
56 #ifdef __cplusplus
57 }
58 #endif
59 #endif /* XS_PLAYER_H */