audio revision 284194
1
2#------------------------------------------------------------------------------
3# $File: audio,v 1.71 2014/05/14 23:30:28 christos Exp $
4# audio:  file(1) magic for sound formats (see also "iff")
5#
6# Jan Nicolai Langfeldt (janl@ifi.uio.no), Dan Quinlan (quinlan@yggdrasil.com),
7# and others
8#
9
10# Sun/NeXT audio data
110	string		.snd		Sun/NeXT audio data:
12>12	belong		1		8-bit ISDN mu-law,
13!:mime	audio/basic
14>12	belong		2		8-bit linear PCM [REF-PCM],
15!:mime	audio/basic
16>12	belong		3		16-bit linear PCM,
17!:mime	audio/basic
18>12	belong		4		24-bit linear PCM,
19!:mime	audio/basic
20>12	belong		5		32-bit linear PCM,
21!:mime	audio/basic
22>12	belong		6		32-bit IEEE floating point,
23!:mime	audio/basic
24>12	belong		7		64-bit IEEE floating point,
25!:mime	audio/basic
26>12	belong		8		Fragmented sample data,
27>12	belong		10		DSP program,
28>12	belong		11		8-bit fixed point,
29>12	belong		12		16-bit fixed point,
30>12	belong		13		24-bit fixed point,
31>12	belong		14		32-bit fixed point,
32>12	belong		18		16-bit linear with emphasis,
33>12	belong		19		16-bit linear compressed,
34>12	belong		20		16-bit linear with emphasis and compression,
35>12	belong		21		Music kit DSP commands,
36>12	belong		23		8-bit ISDN mu-law compressed (CCITT G.721 ADPCM voice enc.),
37!:mime  audio/x-adpcm
38>12	belong		24		compressed (8-bit CCITT G.722 ADPCM)
39>12	belong		25		compressed (3-bit CCITT G.723.3 ADPCM),
40>12	belong		26		compressed (5-bit CCITT G.723.5 ADPCM),
41>12	belong		27		8-bit A-law (CCITT G.711),
42>20	belong		1		mono,
43>20	belong		2		stereo,
44>20	belong		4		quad,
45>16	belong		>0		%d Hz
46
47# DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format
48# that uses little-endian encoding and has a different magic number
490	lelong		0x0064732E	DEC audio data:
50>12	lelong		1		8-bit ISDN mu-law,
51!:mime	audio/x-dec-basic
52>12	lelong		2		8-bit linear PCM [REF-PCM],
53!:mime	audio/x-dec-basic
54>12	lelong		3		16-bit linear PCM,
55!:mime	audio/x-dec-basic
56>12	lelong		4		24-bit linear PCM,
57!:mime	audio/x-dec-basic
58>12	lelong		5		32-bit linear PCM,
59!:mime	audio/x-dec-basic
60>12	lelong		6		32-bit IEEE floating point,
61!:mime	audio/x-dec-basic
62>12	lelong		7		64-bit IEEE floating point,
63!:mime	audio/x-dec-basic
64>12	belong		8		Fragmented sample data,
65>12	belong		10		DSP program,
66>12	belong		11		8-bit fixed point,
67>12	belong		12		16-bit fixed point,
68>12	belong		13		24-bit fixed point,
69>12	belong		14		32-bit fixed point,
70>12	belong		18		16-bit linear with emphasis,
71>12	belong		19		16-bit linear compressed,
72>12	belong		20		16-bit linear with emphasis and compression,
73>12	belong		21		Music kit DSP commands,
74>12	lelong		23		8-bit ISDN mu-law compressed (CCITT G.721 ADPCM voice enc.),
75!:mime	audio/x-dec-basic
76>12	belong		24		compressed (8-bit CCITT G.722 ADPCM)
77>12	belong		25		compressed (3-bit CCITT G.723.3 ADPCM),
78>12	belong		26		compressed (5-bit CCITT G.723.5 ADPCM),
79>12	belong		27		8-bit A-law (CCITT G.711),
80>20	lelong		1		mono,
81>20	lelong		2		stereo,
82>20	lelong		4		quad,
83>16	lelong		>0		%d Hz
84
85# Creative Labs AUDIO stuff
860	string	MThd			Standard MIDI data
87!:mime	audio/midi
88>8 	beshort	x			(format %d)
89>10	beshort	x			using %d track
90>10	beshort		>1		\bs
91>12	beshort&0x7fff	x		at 1/%d
92>12	beshort&0x8000	>0		SMPTE
93
940	string	CTMF			Creative Music (CMF) data
95!:mime	audio/x-unknown
960	string	SBI			SoundBlaster instrument data
97!:mime	audio/x-unknown
980	string	Creative\ Voice\ File	Creative Labs voice data
99!:mime	audio/x-unknown
100# is this next line right?  it came this way...
101>19	byte	0x1A
102>23	byte	>0			- version %d
103>22	byte	>0			\b.%d
104
105# first entry is also the string "NTRK"
1060	belong		0x4e54524b	MultiTrack sound data
107>4	belong		x		- version %d
108
109# Extended MOD format (*.emd) (Greg Roelofs, newt@uchicago.edu); NOT TESTED
110# [based on posting 940824 by "Dirk/Elastik", husberg@lehtori.cc.tut.fi]
1110	string		EMOD		Extended MOD sound data,
112>4	byte&0xf0	x		version %d
113>4	byte&0x0f	x		\b.%d,
114>45	byte		x		%d instruments
115>83	byte		0		(module)
116>83	byte		1		(song)
117
118# Real Audio (Magic .ra\0375)
1190	belong		0x2e7261fd	RealAudio sound file
120!:mime	audio/x-pn-realaudio
1210	string		.RMF\0\0\0	RealMedia file
122!:mime	application/vnd.rn-realmedia
123#video/x-pn-realvideo
124#video/vnd.rn-realvideo
125#application/vnd.rn-realmedia
126#	sigh, there are many mimes for that but the above are the most common.
127
128# MTM/669/FAR/S3M/ULT/XM format checking [Aaron Eppert, aeppert@dialin.ind.net]
129# Oct 31, 1995
130# fixed by <doj@cubic.org> 2003-06-24
131# Too short...
132#0	string		MTM		MultiTracker Module sound file
133#0	string		if		Composer 669 Module sound data
134#0	string		JN		Composer 669 Module sound data (extended format)
1350	string		MAS_U		ULT(imate) Module sound data
136
137#0	string		FAR		Module sound data
138#>4	string		>\15		Title: "%s"
139
1400x2c	string		SCRM		ScreamTracker III Module sound data
141>0	string		>\0		Title: "%s"
142
143# Gravis UltraSound patches
144# From <ache@nagual.ru>
145
1460	string		GF1PATCH110\0ID#000002\0	GUS patch
1470	string		GF1PATCH100\0ID#000002\0	Old GUS	patch
148
149# mime types according to http://www.geocities.com/nevilo/mod.htm:
150#	audio/it	.it
151#	audio/x-zipped-it	.itz
152#	audio/xm	fasttracker modules
153#	audio/x-s3m	screamtracker modules
154#	audio/s3m	screamtracker modules
155#	audio/x-zipped-mod	mdz
156#	audio/mod	mod
157#	audio/x-mod	All modules (mod, s3m, 669, mtm, med, xm, it, mdz, stm, itz, xmz, s3z)
158
159#
160# Taken from loader code from mikmod version 2.14
161# by Steve McIntyre (stevem@chiark.greenend.org.uk)
162# <doj@cubic.org> added title printing on 2003-06-24
1630	string	MAS_UTrack_V00
164>14	string	>/0		ultratracker V1.%.1s module sound data
165!:mime	audio/x-mod
166#audio/x-tracker-module
167
1680	string	UN05		MikMod UNI format module sound data
169
1700	string	Extended\ Module: Fasttracker II module sound data
171!:mime	audio/x-mod
172#audio/x-tracker-module
173>17	string	>\0		Title: "%s"
174
17521	string/c	=!SCREAM!	Screamtracker 2 module sound data
176!:mime	audio/x-mod
177#audio/x-screamtracker-module
17821	string	BMOD2STM	Screamtracker 2 module sound data
179!:mime	audio/x-mod
180#audio/x-screamtracker-module
1811080	string	M.K.		4-channel Protracker module sound data
182!:mime	audio/x-mod
183#audio/x-protracker-module
184>0	string	>\0		Title: "%s"
1851080	string	M!K!		4-channel Protracker module sound data
186!:mime	audio/x-mod
187#audio/x-protracker-module
188>0	string	>\0		Title: "%s"
1891080	string	FLT4		4-channel Startracker module sound data
190!:mime	audio/x-mod
191#audio/x-startracker-module
192>0	string	>\0		Title: "%s"
1931080	string	FLT8		8-channel Startracker module sound data
194!:mime	audio/x-mod
195#audio/x-startracker-module
196>0	string	>\0		Title: "%s"
1971080	string	4CHN		4-channel Fasttracker module sound data
198!:mime	audio/x-mod
199#audio/x-fasttracker-module
200>0	string	>\0		Title: "%s"
2011080	string	6CHN		6-channel Fasttracker module sound data
202!:mime	audio/x-mod
203#audio/x-fasttracker-module
204>0	string	>\0		Title: "%s"
2051080	string	8CHN		8-channel Fasttracker module sound data
206!:mime	audio/x-mod
207#audio/x-fasttracker-module
208>0	string	>\0		Title: "%s"
2091080	string	CD81		8-channel Octalyser module sound data
210!:mime	audio/x-mod
211#audio/x-octalysertracker-module
212>0	string	>\0		Title: "%s"
2131080	string	OKTA		8-channel Octalyzer module sound data
214!:mime	audio/x-mod
215#audio/x-octalysertracker-module
216>0	string	>\0		Title: "%s"
217# Not good enough.
218#1082	string	CH
219#>1080	string	>/0		%.2s-channel Fasttracker "oktalyzer" module sound data
2201080	string	16CN		16-channel Taketracker module sound data
221!:mime	audio/x-mod
222#audio/x-taketracker-module
223>0	string	>\0		Title: "%s"
2241080	string	32CN		32-channel Taketracker module sound data
225!:mime	audio/x-mod
226#audio/x-taketracker-module
227>0	string	>\0		Title: "%s"
228
229# TOC sound files -Trevor Johnson <trevor@jpj.net>
230#
2310       string          TOC             TOC sound file
232
233# sidfiles <pooka@iki.fi>
234# added name,author,(c) and new RSID type by <doj@cubic.org> 2003-06-24
2350	string		SIDPLAY\ INFOFILE	Sidplay info file
236
2370	string		PSID			PlaySID v2.2+ (AMIGA) sidtune
238>4	beshort		>0			w/ header v%d,
239>14	beshort		=1			single song,
240>14	beshort		>1			%d songs,
241>16	beshort		>0			default song: %d
242>0x16	string		>\0			name: "%s"
243>0x36	string		>\0			author: "%s"
244>0x56	string		>\0			copyright: "%s"
245
2460	string		RSID			RSID sidtune PlaySID compatible
247>4	beshort		>0			w/ header v%d,
248>14	beshort		=1			single song,
249>14	beshort		>1			%d songs,
250>16	beshort		>0			default song: %d
251>0x16	string		>\0			name: "%s"
252>0x36	string		>\0			author: "%s"
253>0x56	string		>\0			copyright: "%s"
254
255# IRCAM sound files - Michael Pruett <michael@68k.org>
256# http://www-mmsp.ece.mcgill.ca/documents/AudioFormats/IRCAM/IRCAM.html
2570	belong		0x64a30100		IRCAM file (VAX little-endian)
2580	belong		0x0001a364		IRCAM file (VAX big-endian)
2590	belong		0x64a30200		IRCAM file (Sun big-endian)
2600	belong		0x0002a364		IRCAM file (Sun little-endian)
2610	belong		0x64a30300		IRCAM file (MIPS little-endian)
2620	belong		0x0003a364		IRCAM file (MIPS big-endian)
2630	belong		0x64a30400		IRCAM file (NeXT big-endian)
2640	belong		0x64a30400		IRCAM file (NeXT big-endian)
2650	belong		0x0004a364		IRCAM file (NeXT little-endian)
266
267# NIST SPHERE <mpruett@sgi.com>
2680	string		NIST_1A\n\ \ \ 1024\n	NIST SPHERE file
269
270# Sample Vision <mpruett@sgi.com>
2710	string		SOUND\ SAMPLE\ DATA\ 	Sample Vision file
272
273# Audio Visual Research <tonigonenstein@users.sourceforge.net>
2740	string		2BIT			Audio Visual Research file,
275>12	beshort		=0			mono,
276>12	beshort		=-1			stereo,
277>14	beshort		x			%d bits
278>16	beshort		=0			unsigned,
279>16	beshort		=-1			signed,
280>22	belong&0x00ffffff	x		%d Hz,
281>18	beshort		=0			no loop,
282>18	beshort		=-1			loop,
283>21	ubyte		<128			note %d,
284>22	byte		=0			replay 5.485 KHz
285>22	byte		=1			replay 8.084 KHz
286>22	byte		=2			replay 10.971 KHz
287>22	byte		=3			replay 16.168 KHz
288>22	byte		=4			replay 21.942 KHz
289>22	byte		=5			replay 32.336 KHz
290>22	byte		=6			replay 43.885 KHz
291>22	byte		=7			replay 47.261 KHz
292
293# SGI SoundTrack <mpruett@sgi.com>
2940	string		_SGI_SoundTrack		SGI SoundTrack project file
295# ID3 version 2 tags <waschk@informatik.uni-rostock.de>
2960	string		ID3	Audio file with ID3 version 2
297>3	byte		x	\b.%d
298>4	byte		x	\b.%d
299>>5	byte		&0x80	\b, unsynchronized frames
300>>5	byte		&0x40	\b, extended header
301>>5	byte		&0x20	\b, experimental
302>>5	byte		&0x10	\b, footer present
303>(6.I)	indirect	x	\b, contains: 
304
305# NSF (NES sound file) magic
3060	string		NESM\x1a	NES Sound File
307>14	string		>\0		("%s" by
308>46	string		>\0		%s, copyright
309>78	string		>\0		%s),
310>5	byte		x		version %d,
311>6	byte		x		%d tracks,
312>122	byte&0x2	=1		dual PAL/NTSC
313>122	byte&0x1	=1		PAL
314>122	byte&0x1	=0		NTSC
315
316# Type: SNES SPC700 sound files
317# From: Josh Triplett <josh@freedesktop.org>
3180	string	SNES-SPC700\ Sound\ File\ Data\ v	SNES SPC700 sound file
319>&0	string	0.30					\b, version %s
320>>0x23	byte	0x1B					\b, without ID666 tag
321>>0x23	byte	0x1A					\b, with ID666 tag
322>>>0x2E	string	>\0					\b, song "%.32s"
323>>>0x4E	string	>\0					\b, game "%.32s"
324
325# Impulse tracker module (audio/x-it)
3260	string		IMPM		Impulse Tracker module sound data -
327!:mime	audio/x-mod
328>4	string		>\0		"%s"
329>40	leshort		!0		compatible w/ITv%x
330>42	leshort		!0		created w/ITv%x
331
332# Imago Orpheus module (audio/x-imf)
33360	string		IM10		Imago Orpheus module sound data -
334>0	string		>\0		"%s"
335
336# From <collver1@attbi.com>
337# These are the /etc/magic entries to decode modules, instruments, and
338# samples in Impulse Tracker's native format.
339
3400	string		IMPS		Impulse Tracker Sample
341>18	byte		&2		16 bit
342>18	byte		^2		8 bit
343>18	byte		&4		stereo
344>18	byte		^4		mono
3450	string		IMPI		Impulse Tracker Instrument
346>28	leshort		!0		ITv%x
347>30	byte		!0		%d samples
348
349# Yamaha TX Wave:  file(1) magic for Yamaha TX Wave audio files
350# From <collver1@attbi.com>
3510	string		LM8953		Yamaha TX Wave
352>22	byte		0x49		looped
353>22	byte		0xC9		non-looped
354>23	byte		1		33kHz
355>23	byte		2		50kHz
356>23	byte		3		16kHz
357
358# scream tracker:  file(1) magic for Scream Tracker sample files
359#
360# From <collver1@attbi.com>
36176	string		SCRS		Scream Tracker Sample
362>0	byte		1		sample
363>0	byte		2		adlib melody
364>0	byte		>2		adlib drum
365>31	byte		&2		stereo
366>31	byte		^2		mono
367>31	byte		&4		16bit little endian
368>31	byte		^4		8bit
369>30	byte		0		unpacked
370>30	byte		1		packed
371
372# audio
373# From: Cory Dikkers <cdikkers@swbell.net>
3740	string		MMD0		MED music file, version 0
3750	string		MMD1		OctaMED Pro music file, version 1
3760	string		MMD3		OctaMED Soundstudio music file, version 3
3770	string		OctaMEDCmpr	OctaMED Soundstudio compressed file
3780	string		MED		MED_Song
3790	string		SymM		Symphonie SymMOD music file
380#
3810	string		THX		AHX version
382>3	byte		=0		1 module data
383>3	byte		=1		2 module data
384#
3850	string		OKTASONG	Oktalyzer module data
386#
3870	string		DIGI\ Booster\ module\0	%s
388>20	byte		>0		%c
389>>21	byte		>0		\b%c
390>>>22	byte		>0		\b%c
391>>>>23	byte		>0		\b%c
392>610	string		>\0		\b, "%s"
393#
3940	string		DBM0	   	DIGI Booster Pro Module
395>4	byte		>0		V%X.
396>>5	byte		x		\b%02X
397>16	string		>\0		\b, "%s"
398#
3990	string		FTMN		FaceTheMusic module
400>16	string		>\0d		\b, "%s"
401
402# From: <doj@cubic.org> 2003-06-24
4030	string		AMShdr\32	Velvet Studio AMS Module v2.2
4040	string		Extreme		Extreme Tracker AMS Module v1.3
4050	string		DDMF		Xtracker DMF Module
406>4	byte		x		v%i
407>0xD	string		>\0		Title: "%s"
408>0x2B	string		>\0		Composer: "%s"
4090	string		DSM\32		Dynamic Studio Module DSM
4100	string		SONG		DigiTrekker DTM Module
4110	string		DMDL		DigiTrakker MDL Module
4120	string		PSM\32		Protracker Studio PSM Module
41344	string		PTMF		Poly Tracker PTM Module
414>0	string		>\32		Title: "%s"
4150	string		MT20		MadTracker 2.0 Module MT2
4160	string		RAD\40by\40REALiTY!! RAD Adlib Tracker Module RAD
4170	string		RTMM		RTM Module
4180x426	string		MaDoKaN96	XMS Adlib Module
419>0	string		>\0		Composer: "%s"
4200	string		AMF		AMF Module
421>4	string		>\0		Title: "%s"
4220	string		MODINFO1	Open Cubic Player Module Inforation MDZ
4230	string		Extended\40Instrument: Fast Tracker II Instrument
424
425# From: Takeshi Hamasaki <hma@syd.odn.ne.jp>
426# NOA Nancy Codec file
4270	string		\210NOA\015\012\032	NOA Nancy Codec Movie file
428# Yamaha SMAF format
4290	string		MMMD		Yamaha SMAF file
430# Sharp Jisaku Melody format for PDC
4310	string		\001Sharp\040JisakuMelody	SHARP Cell-Phone ringing Melody
432>20	string		Ver01.00	Ver. 1.00
433>>32	byte		x		, %d tracks
434
435# Free lossless audio codec <http://flac.sourceforge.net>
436# From: Przemyslaw Augustyniak <silvathraec@rpg.pl>
4370	string			fLaC		FLAC audio bitstream data
438!:mime	audio/x-flac
439>4	byte&0x7f		>0		\b, unknown version
440>4	byte&0x7f		0		\b
441# some common bits/sample values
442>>20	beshort&0x1f0		0x030		\b, 4 bit
443>>20	beshort&0x1f0		0x050		\b, 6 bit
444>>20	beshort&0x1f0		0x070		\b, 8 bit
445>>20	beshort&0x1f0		0x0b0		\b, 12 bit
446>>20	beshort&0x1f0		0x0f0		\b, 16 bit
447>>20	beshort&0x1f0		0x170		\b, 24 bit
448>>20	byte&0xe		0x0		\b, mono
449>>20	byte&0xe		0x2		\b, stereo
450>>20	byte&0xe		0x4		\b, 3 channels
451>>20	byte&0xe		0x6		\b, 4 channels
452>>20	byte&0xe		0x8		\b, 5 channels
453>>20	byte&0xe		0xa		\b, 6 channels
454>>20	byte&0xe		0xc		\b, 7 channels
455>>20	byte&0xe		0xe		\b, 8 channels
456# some common sample rates
457>>17	belong&0xfffff0		0x0ac440	\b, 44.1 kHz
458>>17	belong&0xfffff0		0x0bb800	\b, 48 kHz
459>>17	belong&0xfffff0		0x07d000	\b, 32 kHz
460>>17	belong&0xfffff0		0x056220	\b, 22.05 kHz
461>>17	belong&0xfffff0		0x05dc00	\b, 24 kHz
462>>17	belong&0xfffff0		0x03e800	\b, 16 kHz
463>>17	belong&0xfffff0		0x02b110	\b, 11.025 kHz
464>>17	belong&0xfffff0		0x02ee00	\b, 12 kHz
465>>17	belong&0xfffff0		0x01f400	\b, 8 kHz
466>>17	belong&0xfffff0		0x177000	\b, 96 kHz
467>>17	belong&0xfffff0		0x0fa000	\b, 64 kHz
468>>21	byte&0xf		>0		\b, >4G samples
469>>21	byte&0xf		0		\b
470>>>22	belong			>0		\b, %u samples
471>>>22	belong			0		\b, length unknown
472
473# (ISDN) VBOX voice message file (Wolfram Kleff)
4740       string          VBOX            VBOX voice message data
475
476# ReBorn Song Files (.rbs)
477# David J. Singer <doc@deadvirgins.org.uk>
4788       string          RB40             RBS Song file
479>29     string          ReBorn           created by ReBorn
480>37     string          Propellerhead    created by ReBirth
481
482# Synthesizer Generator and Kimwitu share their file format
4830	string		A#S#C#S#S#L#V#3	    Synthesizer Generator or Kimwitu data
484# Kimwitu++ uses a slightly different magic
4850	string		A#S#C#S#S#L#HUB	    Kimwitu++ data
486
487# From "Simon Hosie
4880       string  TFMX-SONG       TFMX module sound data
489
490# Monkey's Audio compressed audio format (.ape)
491# From danny.milo@gmx.net (Danny Milosavljevic)
492# New version from Abel Cheung <abel (@) oaka.org>
4930		string		MAC\040		Monkey's Audio compressed format
494!:mime audio/x-ape
495>4		uleshort	>0x0F8B		version %d
496>>(0x08.l)	uleshort	=1000		with fast compression
497>>(0x08.l)	uleshort	=2000		with normal compression
498>>(0x08.l)	uleshort	=3000		with high compression
499>>(0x08.l)	uleshort	=4000		with extra high compression
500>>(0x08.l)	uleshort	=5000		with insane compression
501>>(0x08.l+18)	uleshort	=1		\b, mono
502>>(0x08.l+18)	uleshort	=2		\b, stereo
503>>(0x08.l+20)	ulelong		x		\b, sample rate %d
504>4		uleshort	<0x0F8C		version %d
505>>6		uleshort	=1000		with fast compression
506>>6		uleshort	=2000		with normal compression
507>>6		uleshort	=3000		with high compression
508>>6		uleshort	=4000		with extra high compression
509>>6		uleshort	=5000		with insane compression
510>>10		uleshort	=1		\b, mono
511>>10		uleshort	=2		\b, stereo
512>>12		ulelong		x		\b, sample rate %d
513
514# adlib sound files
515# From Gurkan Sengun <gurkan@linuks.mine.nu>, http://www.linuks.mine.nu
5160    	string		RAWADATA	RdosPlay RAW
517
5181068	string		RoR		AMUSIC Adlib Tracker
519
5200	string		JCH		EdLib
521
5220	string		mpu401tr	MPU-401 Trakker
523
5240	string		SAdT		Surprise! Adlib Tracker
525>4	byte		x		Version %d
526
5270	string		XAD!		eXotic ADlib
528
5290	string		ofTAZ!		eXtra Simple Music
530
531# Spectrum 128 tunes (.ay files).
532# From: Emanuel Haupt <ehaupt@critical.ch>
5330	string		ZXAYEMUL	Spectrum 128 tune
534
5350	string		\0BONK		BONK,
536#>5	byte		x		version %d
537>14	byte		x		%d channel(s),
538>15	byte		=1		lossless,
539>15	byte		=0		lossy,
540>16	byte		x		mid-side
541
542384	string		LockStream	LockStream Embedded file (mostly MP3 on old Nokia phones)
543
544# format VQF (proprietary codec for sound)
545# some infos on the header file available at :
546# http://www.twinvq.org/english/technology_format.html
5470	string		TWIN97012000	VQF data
548>27	short		0		\b, Mono
549>27	short		1		\b, Stereo
550>31	short 		>0		\b, %d kbit/s
551>35	short 		>0		\b, %d kHz
552
553# Nelson A. de Oliveira (naoliv@gmail.com)
554# .eqf
5550	string	Winamp\ EQ\ library\ file	%s
556# it will match only versions like v<digit>.<digit>
557# Since I saw only eqf files with version v1.1 I think that it's OK
558>23	string	x	\b%.4s
559# .preset
5600	string	[Equalizer\ preset]	XMMS equalizer preset
561# .m3u
5620	search/1	#EXTM3U 	M3U playlist text
563# .pls
5640	search/1	[playlist]	PLS playlist text
565# licq.conf
5661	string	[licq]			LICQ configuration file
567
568# Atari ST audio files by Dirk Jagdmann <doj@cubic.org>
5690	string		ICE!		SNDH Atari ST music
5700	string		SC68\ Music-file\ /\ (c)\ (BeN)jami	sc68 Atari ST music
571
572# musepak support From: "Jiri Pejchal" <jiri.pejchal@gmail.com>
5730       string          MP+     Musepack audio
574!:mime	audio/x-musepack
575>3      byte            255     \b, SV pre8
576>3      byte&0xF        0x6     \b, SV 6
577>3      byte&0xF        0x8     \b, SV 8
578>3      byte&0xF        0x7     \b, SV 7
579>>3     byte&0xF0       0x0     \b.0
580>>3     byte&0xF0       0x10    \b.1
581>>3     byte&0xF0       240     \b.15
582>>10    byte&0xF0       0x0     \b, no profile
583>>10    byte&0xF0       0x10    \b, profile 'Unstable/Experimental'
584>>10    byte&0xF0       0x50    \b, quality 0
585>>10    byte&0xF0       0x60    \b, quality 1
586>>10    byte&0xF0       0x70    \b, quality 2 (Telephone)
587>>10    byte&0xF0       0x80    \b, quality 3 (Thumb)
588>>10    byte&0xF0       0x90    \b, quality 4 (Radio)
589>>10    byte&0xF0       0xA0    \b, quality 5 (Standard)
590>>10    byte&0xF0       0xB0    \b, quality 6 (Xtreme)
591>>10    byte&0xF0       0xC0    \b, quality 7 (Insane)
592>>10    byte&0xF0       0xD0    \b, quality 8 (BrainDead)
593>>10    byte&0xF0       0xE0    \b, quality 9
594>>10    byte&0xF0       0xF0    \b, quality 10
595>>27    byte            0x0     \b, Buschmann 1.7.0-9, Klemm 0.90-1.05
596>>27    byte            102     \b, Beta 1.02
597>>27    byte            104     \b, Beta 1.04
598>>27    byte            105     \b, Alpha 1.05
599>>27    byte            106     \b, Beta 1.06
600>>27    byte            110     \b, Release 1.1
601>>27    byte            111     \b, Alpha 1.11
602>>27    byte            112     \b, Beta 1.12
603>>27    byte            113     \b, Alpha 1.13
604>>27    byte            114     \b, Beta 1.14
605>>27    byte            115     \b, Alpha 1.15
606
607# IMY
608# from http://filext.com/detaillist.php?extdetail=IMY
609# http://cellphones.about.com/od/cellularfaqs/f/rf_imelody.htm
610# http://download.ncl.ie/doc/api/ie/ncl/media/music/IMelody.html
611# http://www.wx800.com/msg/download/irda/iMelody.pdf
6120	string	BEGIN:IMELODY	iMelody Ringtone Format
613
614# From: "Mateus Caruccio" <mateus@caruccio.com>
615# guitar pro v3,4,5 from http://filext.com/file-extension/gp3
6160	string	\030FICHIER\ GUITAR\ PRO\ v3.	Guitar Pro Ver. 3 Tablature
617
618# From: "Leslie P. Polzer" <leslie.polzer@gmx.net>
61960	string	SONG		SoundFX Module sound file
620
621# Type: Adaptive Multi-Rate Codec
622# URL:  http://filext.com/detaillist.php?extdetail=AMR
623# From: Russell Coker <russell@coker.com.au>
6240	string	#!AMR		Adaptive Multi-Rate Codec (GSM telephony)
625
626# Type: SuperCollider 3 Synth Definition File Format
627# From: Mario Lang <mlang@debian.org>
6280	string	SCgf	SuperCollider3 Synth Definition file,
629>4	belong	x	version %d
630
631# Type: True Audio Lossless Audio
632# URL:  http://wiki.multimedia.cx/index.php?title=True_Audio
633# From: Mike Melanson <mike@multimedia.cx>
6340	string	TTA1	True Audio Lossless Audio
635
636# Type: WavPack Lossless Audio
637# URL:  http://wiki.multimedia.cx/index.php?title=WavPack
638# From: Mike Melanson <mike@multimedia.cx>
6390	string	wvpk	WavPack Lossless Audio
640
641# From Fabio R. Schmidlin <frs@pop.com.br>
642# VGM music file
6430	string		Vgm\ 
644>9	ubyte		>0	VGM Video Game Music dump v
645>>9	ubyte/16	>0	\b%d
646>>9	ubyte&0x0F	x	\b%d
647>>8	ubyte/16	x	\b.%d
648>>8	ubyte&0x0F	>0	\b%d
649#Get soundchips
650>>8	ubyte		x	\b, soundchip(s)=
651>>0x0C	ulelong		>0	SN76489,
652>>0x10	ulelong		>0	YM2413,
653>>0x2C	ulelong		>0	YM2612,
654>>0x30	ulelong		>0	YM2151,
655>>0x38	ulelong		>0	Sega PCM,
656>>0x34	ulelong		>0xC
657>>>0x40	ulelong		>0	RF5C68,
658>>0x34	ulelong		>0x10
659>>>0x44	ulelong		>0	YM2203,
660>>0x34	ulelong		>0x14
661>>>0x48	ulelong		>0	YM2608,
662>>0x34	ulelong		>0x18
663>>>0x4C	lelong		>0	YM2610,
664>>>0x4C	lelong		<0	YM2610B,
665>>0x34	ulelong		>0x1C
666>>>0x50	ulelong		>0	YM3812,
667>>0x34	ulelong		>0x20
668>>>0x54	ulelong		>0	YM3526,
669>>0x34	ulelong		>0x24
670>>>0x58	ulelong		>0	Y8950,
671>>0x34	ulelong		>0x28
672>>>0x5C	ulelong		>0	YMF262,
673>>0x34	ulelong		>0x2C
674>>>0x60	ulelong		>0	YMF278B,
675>>0x34	ulelong		>0x30
676>>>0x64	ulelong		>0	YMF271,
677>>0x34	ulelong		>0x34
678>>>0x68	ulelong		>0	YMZ280B,
679>>0x34	ulelong		>0x38
680>>>0x6C	ulelong		>0	RF5C164,
681>>0x34	ulelong		>0x3C
682>>>0x70	ulelong		>0	PWM,
683>>0x34	ulelong		>0x40
684>>>0x74	ulelong		>0
685>>>>0x78 ubyte		0x00	AY-3-8910,
686>>>>0x78 ubyte		0x01	AY-3-8912,
687>>>>0x78 ubyte		0x02	AY-3-8913,
688>>>>0x78 ubyte		0x03	AY-3-8930,
689>>>>0x78 ubyte		0x10	YM2149,
690>>>>0x78 ubyte		0x11	YM3439,
691
692# GVOX Encore file format
693# Since this is a proprietary file format and there is no publicly available
694# format specification, this is just based on induction
695#
6960	string	SCOW
697>4	byte	0xc4	GVOX Encore music, version 5.0 or above
698>4	byte	0xc2	GVOX Encore music, version < 5.0
699
7000	string	ZBOT
701>4	byte	0xc5	GVOX Encore music, version < 5.0
702
703