Mercurial > hg > xmms-sid
annotate src/xs_backend.h @ 902:451e248f4f65
Document the ROM configuration option.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 09 Nov 2012 09:20:45 +0200 |
parents | d03e5c73eb51 |
children | 4c6c5247de7d |
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 |
876 | 13 typedef struct |
14 { | |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
657
diff
changeset
|
15 gint plrIdent; |
751 | 16 gboolean (*plrProbe)(XSFile *); |
17 gboolean (*plrInit)(struct XSEngineState *); | |
18 void (*plrClose)(struct XSEngineState *); | |
19 gboolean (*plrInitSong)(struct XSEngineState *); | |
20 guint (*plrFillBuffer)(struct XSEngineState *, gchar *, guint); | |
21 gboolean (*plrLoadSID)(struct XSEngineState *, gchar *); | |
22 void (*plrDeleteSID)(struct XSEngineState *); | |
753 | 23 XSTuneInfo* (*plrGetSIDInfo)(const gchar *); |
751 | 24 gboolean (*plrUpdateSIDInfo)(struct XSEngineState *); |
25 void (*plrFlush)(struct XSEngineState *); | |
26 } 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
|
27 |
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
|
28 |
876 | 29 typedef struct XSEngineState |
30 { | |
753 | 31 gint audioFrequency, /* Audio settings */ |
684 | 32 audioChannels, |
748
d9d769b5dbe2
Remove oversampling support.
Matti Hamalainen <ccr@tnsp.org>
parents:
726
diff
changeset
|
33 audioBitsPerSample; |
684 | 34 AFormat audioFormat; |
748
d9d769b5dbe2
Remove oversampling support.
Matti Hamalainen <ccr@tnsp.org>
parents:
726
diff
changeset
|
35 |
753 | 36 void *internal; /* SID-emulation internal engine data */ |
37 XSEngine *engine; /* Selected player engine */ | |
798 | 38 gboolean error, |
799
13483b855058
Fix subsong control window problems during pause state.
Matti Hamalainen <ccr@tnsp.org>
parents:
798
diff
changeset
|
39 playing, |
13483b855058
Fix subsong control window problems during pause state.
Matti Hamalainen <ccr@tnsp.org>
parents:
798
diff
changeset
|
40 paused; |
753 | 41 gint currSong, /* Current sub-tune */ |
684 | 42 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
|
43 |
751 | 44 XSTuneInfo *tuneInfo; |
45 } 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
|
46 |
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
|
47 |
876 | 48 typedef struct |
49 { | |
50 char *name; | |
51 char *filename; | |
52 size_t size; | |
53 } XSROMImageData; | |
54 | |
55 #define XS_C64_ROM_IMAGES 3 | |
56 | |
873 | 57 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
|
58 |
876 | 59 gboolean xs_load_rom_images(guint8 **roms); |
60 | |
872
b02f934d8224
Move some code to xs_backend.
Matti Hamalainen <ccr@tnsp.org>
parents:
799
diff
changeset
|
61 |
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
|
62 #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
|
63 } |
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
|
64 #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
|
65 #endif /* XS_PLAYER_H */ |