summaryrefslogtreecommitdiff
path: root/apps/codecs/libgme/nsfe_info.h
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-08-07 20:01:04 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-08-07 20:01:04 +0000
commitacb0917556fc33681c1df5a530cf754193e67705 (patch)
tree052a47097009a210e4aed9c207bd6aa4828cc000 /apps/codecs/libgme/nsfe_info.h
parent93c6f1329a5691a8be158cefe15641bd1daf9ef8 (diff)
downloadrockbox-acb0917556fc33681c1df5a530cf754193e67705.tar.gz
rockbox-acb0917556fc33681c1df5a530cf754193e67705.zip
Submit initial patch from FS#12176. Adds support for several new game music formats (AY, GBS, HES, KSS, SGC, VGM and VGZ) and replaces the current NSF and NSFE with a new implementation based on a port of the Game Music Emu library 'GME'. This first submit does not cover the full functionality provided by the author's original patch: Coleco-SGV is not supported, some GME-specific m3u-support has been removed and IRAM is not used yet. Further changes are very likely to follow this submit. Thanks to Mauricio Garrido.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30264 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libgme/nsfe_info.h')
-rw-r--r--apps/codecs/libgme/nsfe_info.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/apps/codecs/libgme/nsfe_info.h b/apps/codecs/libgme/nsfe_info.h
new file mode 100644
index 0000000000..9dcde7b68a
--- /dev/null
+++ b/apps/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
9struct Nsf_Emu;
10
11// Allows reading info from NSFE file without creating emulator
12struct 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
23void Info_init( struct Nsfe_Info* this );
24blargg_err_t Info_load( struct Nsfe_Info* this, void *data, long size, struct Nsf_Emu* );
25void Info_disable_playlist( struct Nsfe_Info* this, bool b );
26int Info_remap_track( struct Nsfe_Info* this, int i );
27void Info_unload( struct Nsfe_Info* this );
28
29
30#endif