diff options
author | Sean Bartell <wingedtachikoma@gmail.com> | 2011-06-25 21:32:25 -0400 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2012-04-25 22:13:20 +0200 |
commit | f40bfc9267b13b54e6379dfe7539447662879d24 (patch) | |
tree | 9b20069d5e62809ff434061ad730096836f916f2 /lib/rbcodec/codecs/libgme/nsfe_info.h | |
parent | a0009907de7a0107d49040d8a180f140e2eff299 (diff) | |
download | rockbox-f40bfc9267b13b54e6379dfe7539447662879d24.tar.gz rockbox-f40bfc9267b13b54e6379dfe7539447662879d24.zip |
Add codecs to librbcodec.
Change-Id: Id7f4717d51ed02d67cb9f9cb3c0ada4a81843f97
Reviewed-on: http://gerrit.rockbox.org/137
Reviewed-by: Nils Wallménius <nils@rockbox.org>
Tested-by: Nils Wallménius <nils@rockbox.org>
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 | ||