Mercurial > hg > xmms-sid
annotate src/xs_backend.h @ 873:50111e99456a
Oops. Fix previous commit.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 09 Nov 2012 04:39:41 +0200 |
parents | b02f934d8224 |
children | d03e5c73eb51 |
rev | line source |
---|---|
526
fa95d942f226
Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
1 #ifndef XS_PLAYER_H |
fa95d942f226
Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
2 #define XS_PLAYER_H |
fa95d942f226
Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
3 |
fa95d942f226
Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
4 #include "xmms-sid.h" |
872
b02f934d8224
Move some code to xs_backend.
Matti Hamalainen <ccr@tnsp.org>
parents:
799
diff
changeset
|
5 #include "xs_support.h" |
526
fa95d942f226
Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
6 |
fa95d942f226
Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
7 #ifdef __cplusplus |
fa95d942f226
Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
8 extern "C" { |
fa95d942f226
Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
9 #endif |
fa95d942f226
Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
10 |
751 | 11 struct XSEngineState; |
526
fa95d942f226
Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
12 |
fa95d942f226
Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
13 typedef struct { |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
657
diff
changeset
|
14 gint plrIdent; |
751 | 15 gboolean (*plrProbe)(XSFile *); |
16 gboolean (*plrInit)(struct XSEngineState *); | |
17 void (*plrClose)(struct XSEngineState *); | |
18 gboolean (*plrInitSong)(struct XSEngineState *); | |
19 guint (*plrFillBuffer)(struct XSEngineState *, gchar *, guint); | |
20 gboolean (*plrLoadSID)(struct XSEngineState *, gchar *); | |
21 void (*plrDeleteSID)(struct XSEngineState *); | |
753 | 22 XSTuneInfo* (*plrGetSIDInfo)(const gchar *); |
751 | 23 gboolean (*plrUpdateSIDInfo)(struct XSEngineState *); |
24 void (*plrFlush)(struct XSEngineState *); | |
25 } XSEngine; | |
526
fa95d942f226
Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
26 |
fa95d942f226
Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
27 |
751 | 28 typedef struct XSEngineState { |
753 | 29 gint audioFrequency, /* Audio settings */ |
684 | 30 audioChannels, |
748
d9d769b5dbe2
Remove oversampling support.
Matti Hamalainen <ccr@tnsp.org>
parents:
726
diff
changeset
|
31 audioBitsPerSample; |
684 | 32 AFormat audioFormat; |
748
d9d769b5dbe2
Remove oversampling support.
Matti Hamalainen <ccr@tnsp.org>
parents:
726
diff
changeset
|
33 |
753 | 34 void *internal; /* SID-emulation internal engine data */ |
35 XSEngine *engine; /* Selected player engine */ | |
798 | 36 gboolean error, |
799
13483b855058
Fix subsong control window problems during pause state.
Matti Hamalainen <ccr@tnsp.org>
parents:
798
diff
changeset
|
37 playing, |
13483b855058
Fix subsong control window problems during pause state.
Matti Hamalainen <ccr@tnsp.org>
parents:
798
diff
changeset
|
38 paused; |
753 | 39 gint currSong, /* Current sub-tune */ |
684 | 40 lastTime; |
526
fa95d942f226
Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
41 |
751 | 42 XSTuneInfo *tuneInfo; |
43 } XSEngineState; | |
526
fa95d942f226
Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
44 |
fa95d942f226
Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
45 |
873 | 46 gboolean xs_init_emu_backend(XSEngineState *state, gint *preferred); |
872
b02f934d8224
Move some code to xs_backend.
Matti Hamalainen <ccr@tnsp.org>
parents:
799
diff
changeset
|
47 |
b02f934d8224
Move some code to xs_backend.
Matti Hamalainen <ccr@tnsp.org>
parents:
799
diff
changeset
|
48 |
526
fa95d942f226
Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
49 #ifdef __cplusplus |
fa95d942f226
Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
50 } |
fa95d942f226
Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
51 #endif |
fa95d942f226
Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
52 #endif /* XS_PLAYER_H */ |