summaryrefslogtreecommitdiff
path: root/apps/metadata/metadata_common.c
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/metadata/metadata_common.c
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/metadata/metadata_common.c')
-rw-r--r--apps/metadata/metadata_common.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/metadata/metadata_common.c b/apps/metadata/metadata_common.c
index 6c420d921f..1ad89d1b7a 100644
--- a/apps/metadata/metadata_common.c
+++ b/apps/metadata/metadata_common.c
@@ -178,6 +178,14 @@ unsigned long get_long_be(void* buf)
178 return (p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3]; 178 return (p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3];
179} 179}
180 180
181/* Read an unaligned 16-bit little endian short from buffer. */
182unsigned short get_short_be(void* buf)
183{
184 unsigned char* p = (unsigned char*) buf;
185
186 return (p[0] << 8) | p[1];
187}
188
181/* Read an unaligned 32-bit little endian long from buffer. */ 189/* Read an unaligned 32-bit little endian long from buffer. */
182long get_slong(void* buf) 190long get_slong(void* buf)
183{ 191{