diff options
Diffstat (limited to 'lib/rbcodec/codecs/libgme/nsfe_info.h')
-rw-r--r-- | lib/rbcodec/codecs/libgme/nsfe_info.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/rbcodec/codecs/libgme/nsfe_info.h b/lib/rbcodec/codecs/libgme/nsfe_info.h new file mode 100644 index 0000000000..9dcde7b68a --- /dev/null +++ b/lib/rbcodec/codecs/libgme/nsfe_info.h | |||
@@ -0,0 +1,30 @@ | |||
1 | // Nintendo NES/Famicom NSFE file info parser | ||
2 | |||
3 | // Game_Music_Emu 0.5.5 | ||
4 | #ifndef NSFE_INFO_H | ||
5 | #define NSFE_INFO_H | ||
6 | |||
7 | #include "blargg_common.h" | ||
8 | |||
9 | struct Nsf_Emu; | ||
10 | |||
11 | // Allows reading info from NSFE file without creating emulator | ||
12 | struct Nsfe_Info { | ||
13 | int playlist_size; | ||
14 | int track_times_size; | ||
15 | int track_count; | ||
16 | int actual_track_count_; | ||
17 | bool playlist_disabled; | ||
18 | |||
19 | unsigned char playlist [256]; | ||
20 | int32_t track_times [256]; | ||
21 | }; | ||
22 | |||
23 | void Info_init( struct Nsfe_Info* this ); | ||
24 | blargg_err_t Info_load( struct Nsfe_Info* this, void *data, long size, struct Nsf_Emu* ); | ||
25 | void Info_disable_playlist( struct Nsfe_Info* this, bool b ); | ||
26 | int Info_remap_track( struct Nsfe_Info* this, int i ); | ||
27 | void Info_unload( struct Nsfe_Info* this ); | ||
28 | |||
29 | |||
30 | #endif | ||