From 4231c2c83f2b5331e3e38b10a308ee3752315f9c Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sat, 26 Sep 2020 17:19:07 -0400 Subject: codecs: Add support for the 'VTX' ZX Spectrum chiptunes format. This codec requires floating point. Original author: Peter Sovietov Ported to Rockbox: Roman Skylarov Further integration and bugfixes: Solomon Peachy Change-Id: I781ecd3592dfcdbbc694063334350342534f1d6c --- lib/rbcodec/metadata/metadata.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'lib/rbcodec/metadata/metadata.h') diff --git a/lib/rbcodec/metadata/metadata.h b/lib/rbcodec/metadata/metadata.h index 5c78eae9d4..fc9c1d062c 100644 --- a/lib/rbcodec/metadata/metadata.h +++ b/lib/rbcodec/metadata/metadata.h @@ -83,6 +83,9 @@ enum AFMT_MPC_SV8, /* Musepack SV8 */ AFMT_MP4_AAC_HE, /* Advanced Audio Coding (AAC-HE) in M4A container */ AFMT_AY, /* AY (ZX Spectrum, Amstrad CPC Sound Format) */ +#ifdef HAVE_FPU + AFMT_VTX, /* VTX (ZX Spectrum Sound Format) */ +#endif AFMT_GBS, /* GBS (Game Boy Sound Format) */ AFMT_HES, /* HES (Hudson Entertainment System Sound Format) */ AFMT_SGC, /* SGC (Sega Master System, Game Gear, Coleco Vision Sound Format) */ @@ -140,7 +143,7 @@ enum rec_format_indexes REC_FORMAT_CFG_NUM_BITS = 2 }; -#define REC_FORMAT_CFG_VAL_LIST "wave,aiff,wvpk,mpa3" +#define REC_FORMAT_CFG_VAL_LIST "wave,aiff,wvpk,mpa3" /* get REC_FORMAT_* corresponding AFMT_* */ extern const int rec_format_afmt[REC_NUM_FORMATS]; @@ -232,7 +235,7 @@ struct mp3entry { char* comment; char* albumartist; char* grouping; - int discnum; + int discnum; int tracknum; int layer; int year; @@ -283,7 +286,7 @@ struct mp3entry { #ifdef HAVE_TAGCACHE unsigned char autoresumable; /* caches result of autoresumable() */ - + /* runtime database fields */ long tagcache_idx; /* 0=invalid, otherwise idx+1 */ int rating; @@ -292,7 +295,7 @@ struct mp3entry { long lastplayed; long playtime; #endif - + /* replaygain support */ long track_level; /* holds the level in dB * (1<