diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-08-07 20:01:04 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-08-07 20:01:04 +0000 |
commit | acb0917556fc33681c1df5a530cf754193e67705 (patch) | |
tree | 052a47097009a210e4aed9c207bd6aa4828cc000 /apps/metadata.c | |
parent | 93c6f1329a5691a8be158cefe15641bd1daf9ef8 (diff) | |
download | rockbox-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.c')
-rw-r--r-- | apps/metadata.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/apps/metadata.c b/apps/metadata.c index cbb5b42795..8b1101eaa5 100644 --- a/apps/metadata.c +++ b/apps/metadata.c | |||
@@ -216,6 +216,24 @@ const struct afmt_entry audio_formats[AFMT_NUM_CODECS] = | |||
216 | /* Advanced Audio Coding High Efficiency in M4A container */ | 216 | /* Advanced Audio Coding High Efficiency in M4A container */ |
217 | [AFMT_MP4_AAC_HE] = | 217 | [AFMT_MP4_AAC_HE] = |
218 | AFMT_ENTRY("AAC-HE","aac", NULL, get_mp4_metadata, "mp4\0"), | 218 | AFMT_ENTRY("AAC-HE","aac", NULL, get_mp4_metadata, "mp4\0"), |
219 | /* AY (ZX Spectrum, Amstrad CPC Sound Format) */ | ||
220 | [AFMT_AY] = | ||
221 | AFMT_ENTRY("AY", "ay", NULL, get_ay_metadata, "ay\0"), | ||
222 | /* GBS (Game Boy Sound Format) */ | ||
223 | [AFMT_GBS] = | ||
224 | AFMT_ENTRY("GBS", "gbs", NULL, get_gbs_metadata, "gbs\0"), | ||
225 | /* HES (Hudson Entertainment System Sound Format) */ | ||
226 | [AFMT_HES] = | ||
227 | AFMT_ENTRY("HES", "hes", NULL, get_hes_metadata, "hes\0"), | ||
228 | /* SGC (Sega Master System, Game Gear, Coleco Vision Sound Format) */ | ||
229 | [AFMT_SGC] = | ||
230 | AFMT_ENTRY("SGC", "sgc", NULL, get_sgc_metadata, "sgc\0"), | ||
231 | /* VGM (Video Game Music Format) */ | ||
232 | [AFMT_VGM] = | ||
233 | AFMT_ENTRY("VGM", "vgm", NULL, get_vgm_metadata, "vgm\0vgz\0"), | ||
234 | /* KSS (MSX computer KSS Music File) */ | ||
235 | [AFMT_KSS] = | ||
236 | AFMT_ENTRY("KSS", "kss", NULL, get_kss_metadata, "kss\0"), | ||
219 | #endif | 237 | #endif |
220 | }; | 238 | }; |
221 | 239 | ||
@@ -299,6 +317,12 @@ enum data_type get_audio_base_data_type(int afmt) | |||
299 | case AFMT_SID: | 317 | case AFMT_SID: |
300 | case AFMT_MOD: | 318 | case AFMT_MOD: |
301 | case AFMT_SAP: | 319 | case AFMT_SAP: |
320 | case AFMT_AY: | ||
321 | case AFMT_GBS: | ||
322 | case AFMT_HES: | ||
323 | case AFMT_SGC: | ||
324 | case AFMT_VGM: | ||
325 | case AFMT_KSS: | ||
302 | /* Type must be allocated and loaded in its entirety onto | 326 | /* Type must be allocated and loaded in its entirety onto |
303 | the buffer */ | 327 | the buffer */ |
304 | return TYPE_ATOMIC_AUDIO; | 328 | return TYPE_ATOMIC_AUDIO; |