head	1.18;
access;
symbols
	perseant-exfatfs-base-20250801:1.18
	perseant-exfatfs-base-20240630:1.18
	perseant-exfatfs:1.18.0.46
	perseant-exfatfs-base:1.18
	cjep_sun2x:1.18.0.44
	cjep_sun2x-base:1.18
	cjep_staticlib_x-base1:1.18
	cjep_staticlib_x:1.18.0.42
	cjep_staticlib_x-base:1.18
	phil-wifi-20200421:1.18
	phil-wifi-20200411:1.18
	phil-wifi-20200406:1.18
	pgoyette-compat-merge-20190127:1.18
	pgoyette-compat-20190127:1.18
	pgoyette-compat-20190118:1.18
	pgoyette-compat-1226:1.18
	pgoyette-compat-1126:1.18
	pgoyette-compat-1020:1.18
	pgoyette-compat-0930:1.18
	pgoyette-compat-0906:1.18
	pgoyette-compat-0728:1.18
	pgoyette-compat-0625:1.18
	pgoyette-compat-0521:1.18
	pgoyette-compat-0502:1.18
	pgoyette-compat-0422:1.18
	pgoyette-compat-0415:1.18
	pgoyette-compat-0407:1.18
	pgoyette-compat-0330:1.18
	pgoyette-compat-0322:1.18
	pgoyette-compat-0315:1.18
	pgoyette-compat:1.18.0.40
	pgoyette-compat-base:1.18
	perseant-stdc-iso10646:1.18.0.38
	perseant-stdc-iso10646-base:1.18
	prg-localcount2-base3:1.18
	prg-localcount2-base2:1.18
	prg-localcount2-base1:1.18
	prg-localcount2:1.18.0.36
	prg-localcount2-base:1.18
	pgoyette-localcount-20170426:1.18
	bouyer-socketcan-base1:1.18
	pgoyette-localcount-20170320:1.18
	bouyer-socketcan:1.18.0.34
	bouyer-socketcan-base:1.18
	pgoyette-localcount-20170107:1.18
	pgoyette-localcount-20161104:1.18
	localcount-20160914:1.18
	pgoyette-localcount-20160806:1.18
	pgoyette-localcount-20160726:1.18
	pgoyette-localcount:1.18.0.32
	pgoyette-localcount-base:1.18
	netbsd-5-2-3-RELEASE:1.18
	netbsd-5-1-5-RELEASE:1.18
	yamt-pagecache-base9:1.18
	yamt-pagecache-tag8:1.18
	tls-earlyentropy:1.18.0.28
	tls-earlyentropy-base:1.18
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.18
	riastradh-drm2-base3:1.18
	netbsd-5-2-2-RELEASE:1.18
	netbsd-5-1-4-RELEASE:1.18
	netbsd-5-2-1-RELEASE:1.18
	netbsd-5-1-3-RELEASE:1.18
	agc-symver:1.18.0.30
	agc-symver-base:1.18
	tls-maxphys-base:1.18
	yamt-pagecache-base8:1.18
	netbsd-5-2:1.18.0.26
	yamt-pagecache-base7:1.18
	netbsd-5-2-RELEASE:1.18
	netbsd-5-2-RC1:1.18
	yamt-pagecache-base6:1.18
	yamt-pagecache-base5:1.18
	yamt-pagecache-base4:1.18
	netbsd-5-1-2-RELEASE:1.18
	netbsd-5-1-1-RELEASE:1.18
	yamt-pagecache-base3:1.18
	yamt-pagecache-base2:1.18
	yamt-pagecache:1.18.0.24
	yamt-pagecache-base:1.18
	bouyer-quota2-nbase:1.18
	bouyer-quota2:1.18.0.22
	bouyer-quota2-base:1.18
	matt-nb5-pq3:1.18.0.20
	matt-nb5-pq3-base:1.18
	netbsd-5-1:1.18.0.18
	netbsd-5-1-RELEASE:1.18
	netbsd-5-1-RC4:1.18
	netbsd-5-1-RC3:1.18
	netbsd-5-1-RC2:1.18
	netbsd-5-1-RC1:1.18
	netbsd-5-0-2-RELEASE:1.18
	netbsd-5-0-1-RELEASE:1.18
	jym-xensuspend-nbase:1.18
	netbsd-5-0:1.18.0.16
	netbsd-5-0-RELEASE:1.18
	netbsd-5-0-RC4:1.18
	netbsd-5-0-RC3:1.18
	netbsd-5-0-RC2:1.18
	jym-xensuspend:1.18.0.14
	jym-xensuspend-base:1.18
	netbsd-5-0-RC1:1.18
	netbsd-5:1.18.0.12
	netbsd-5-base:1.18
	mjf-devfs2:1.18.0.10
	mjf-devfs2-base:1.18
	yamt-pf42-base4:1.18
	yamt-pf42-base3:1.18
	hpcarm-cleanup-nbase:1.18
	yamt-pf42-base2:1.18
	yamt-pf42:1.18.0.8
	yamt-pf42-base:1.18
	keiichi-mipv6-nbase:1.18
	keiichi-mipv6:1.18.0.6
	keiichi-mipv6-base:1.18
	cube-autoconf:1.18.0.4
	cube-autoconf-base:1.18
	hpcarm-cleanup:1.18.0.2
	hpcarm-cleanup-base:1.18
	netbsd-1-6-PATCH002-RELEASE:1.13
	netbsd-1-6-PATCH002:1.13
	netbsd-1-6-PATCH002-RC4:1.13
	netbsd-1-6-PATCH002-RC3:1.13
	netbsd-1-6-PATCH002-RC2:1.13
	netbsd-1-6-PATCH002-RC1:1.13
	netbsd-1-6-PATCH001:1.13
	netbsd-1-6-PATCH001-RELEASE:1.13
	netbsd-1-6-PATCH001-RC3:1.13
	netbsd-1-6-PATCH001-RC2:1.13
	netbsd-1-6-PATCH001-RC1:1.13
	fvdl_fs64_base:1.17
	netbsd-1-6-RELEASE:1.13
	netbsd-1-6-RC3:1.13
	netbsd-1-6-RC2:1.13
	netbsd-1-6-RC1:1.13
	FILE3_39:1.1.1.6
	netbsd-1-6:1.13.0.2
	netbsd-1-6-base:1.13
	FILE3_38:1.1.1.5
	netbsd-1-5-PATCH003:1.10
	FILE3_37:1.1.1.4
	netbsd-1-5-PATCH002:1.10
	FILE3_36:1.1.1.4
	netbsd-1-5-PATCH001:1.10
	FILE3_34:1.1.1.3
	FILE3_33:1.1.1.3
	netbsd-1-5-RELEASE:1.10
	netbsd-1-5-BETA2:1.10
	netbsd-1-5-BETA:1.10
	FILE3_32:1.1.1.2
	netbsd-1-4-PATCH003:1.8
	netbsd-1-5-ALPHA2:1.10
	netbsd-1-5:1.10.0.6
	netbsd-1-5-base:1.10
	minoura-xpg4dl-base:1.10
	minoura-xpg4dl:1.10.0.4
	FILE3_31:1.1.1.2
	netbsd-1-4-PATCH002:1.8
	wrstuden-devbsize-19991221:1.10
	wrstuden-devbsize:1.9.0.2
	wrstuden-devbsize-base:1.10
	comdex-fall-1999:1.10.0.2
	comdex-fall-1999-base:1.10
	FILE3_28:1.1.1.2
	netbsd-1-4-PATCH001:1.8
	netbsd-1-4-RELEASE:1.8
	netbsd-1-4:1.8.0.2
	netbsd-1-4-base:1.8
	netbsd-1-3-PATCH003:1.6
	netbsd-1-3-PATCH003-CANDIDATE2:1.6
	netbsd-1-3-PATCH003-CANDIDATE1:1.6
	netbsd-1-3-PATCH003-CANDIDATE0:1.6
	FILE3_26:1.1.1.1
	CHRISTOS:1.1.1
	FILE:1.1.1
	netbsd-1-3-PATCH002:1.6
	netbsd-1-3-PATCH001:1.6
	netbsd-1-3-RELEASE:1.6
	netbsd-1-3-BETA:1.6
	netbsd-1-3:1.6.0.2
	netbsd-1-3-base:1.6
	netbsd-1-2-PATCH001:1.4
	netbsd-1-2-RELEASE:1.4
	netbsd-1-2-BETA:1.4
	netbsd-1-2:1.4.0.4
	netbsd-1-2-base:1.4
	netbsd-1-1-PATCH001:1.3
	netbsd-1-1-RELEASE:1.3
	netbsd-1-1:1.3.0.2
	netbsd-1-1-base:1.3
	netbsd-1-0-PATCH06:1.1
	netbsd-1-0-PATCH05:1.1
	netbsd-1-0-PATCH04:1.1
	netbsd-1-0-PATCH03:1.1
	netbsd-1-0-PATCH02:1.1
	netbsd-1-0-PATCH1:1.1
	netbsd-1-0-PATCH0:1.1
	netbsd-1-0-RELEASE:1.1
	netbsd-1-0:1.1.0.4
	netbsd-1-0-base:1.1
	netbsd-0-9-RELEASE:1.1
	netbsd-0-9-BETA:1.1
	netbsd-0-9-ALPHA2:1.1
	netbsd-0-9-ALPHA:1.1
	netbsd-0-9:1.1.0.2
	netbsd-0-9-base:1.1;
locks; strict;
comment	@# @;


1.18
date	2003.03.26.00.05.19;	author pooka;	state dead;
branches;
next	1.17;

1.17
date	2002.07.10.09.02.22;	author pooka;	state Exp;
branches;
next	1.16;

1.16
date	2002.07.10.09.00.27;	author pooka;	state Exp;
branches;
next	1.15;

1.15
date	2002.07.10.08.58.38;	author pooka;	state Exp;
branches;
next	1.14;

1.14
date	2002.07.09.14.59.56;	author pooka;	state Exp;
branches;
next	1.13;

1.13
date	2002.05.18.07.00.48;	author pooka;	state Exp;
branches;
next	1.12;

1.12
date	2001.07.22.22.53.04;	author pooka;	state Exp;
branches;
next	1.11;

1.11
date	2000.11.23.23.21.15;	author pooka;	state Exp;
branches;
next	1.10;

1.10
date	99.11.01.17.39.28;	author christos;	state Exp;
branches;
next	1.9;

1.9
date	99.07.05.21.38.21;	author hubertf;	state Exp;
branches
	1.9.2.1;
next	1.8;

1.8
date	98.11.25.07.54.21;	author hubertf;	state Exp;
branches;
next	1.7;

1.7
date	98.09.20.15.27.17;	author christos;	state Exp;
branches;
next	1.6;

1.6
date	97.01.27.17.58.17;	author christos;	state Exp;
branches;
next	1.5;

1.5
date	96.10.05.20.20.35;	author christos;	state Exp;
branches;
next	1.4;

1.4
date	95.10.27.23.33.29;	author christos;	state Exp;
branches;
next	1.3;

1.3
date	95.04.28.19.24.11;	author christos;	state Exp;
branches;
next	1.2;

1.2
date	95.03.25.22.38.03;	author christos;	state Exp;
branches;
next	1.1;

1.1
date	93.06.10.00.57.37;	author jtc;	state Exp;
branches
	1.1.1.1;
next	;

1.9.2.1
date	99.12.27.18.36.52;	author wrstuden;	state Exp;
branches;
next	;

1.1.1.1
date	98.09.19.18.08.22;	author christos;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	99.11.01.17.30.47;	author christos;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2000.11.23.23.07.35;	author pooka;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2001.07.22.22.32.04;	author pooka;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	2002.05.18.06.46.00;	author pooka;	state Exp;
branches;
next	1.1.1.6;

1.1.1.6
date	2002.07.09.14.47.26;	author pooka;	state Exp;
branches;
next	;


desc
@@


1.18
log
@use file from dist
@
text
@
#------------------------------------------------------------------------------
# audio:  file(1) magic for sound formats (see also "iff")
#
# Jan Nicolai Langfeldt (janl@@ifi.uio.no), Dan Quinlan (quinlan@@yggdrasil.com),
# and others
#

# Sun/NeXT audio data
0	string		.snd		Sun/NeXT audio data:
>12	belong		1		8-bit ISDN u-law,
>12	belong		2		8-bit linear PCM [REF-PCM],
>12	belong		3		16-bit linear PCM,
>12	belong		4		24-bit linear PCM,
>12	belong		5		32-bit linear PCM,
>12	belong		6		32-bit IEEE floating point,
>12	belong		7		64-bit IEEE floating point,
>12	belong		23		8-bit ISDN u-law compressed (CCITT G.721 ADPCM voice data encoding),
>12	belong		24		compressed (8-bit G.722 ADPCM)
>12	belong		25		compressed (3-bit G.723 ADPCM),
>12	belong		26		compressed (5-bit G.723 ADPCM),
>12	belong		27		8-bit A-law,
>20	belong		1		mono,
>20	belong		2		stereo,
>20	belong		4		quad,
>16	belong		>0		%d Hz

# DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format
# that uses little-endian encoding and has a different magic number
0	lelong		0x0064732E	DEC audio data:
>12	lelong		1		8-bit ISDN u-law,
>12	lelong		2		8-bit linear PCM [REF-PCM],
>12	lelong		3		16-bit linear PCM,
>12	lelong		4		24-bit linear PCM,
>12	lelong		5		32-bit linear PCM,
>12	lelong		6		32-bit IEEE floating point,
>12	lelong		7		64-bit IEEE floating point,
>12	lelong		23		8-bit ISDN u-law compressed (CCITT G.721 ADPCM voice data encoding),
>20	lelong		1		mono,
>20	lelong		2		stereo,
>20	lelong		4		quad,
>16	lelong		>0		%d Hz

# Creative Labs AUDIO stuff
0	string	MThd			Standard MIDI data
>9 	byte	>0			(format %d)
>11	byte	>1			using %d tracks
0	string	CTMF			Creative Music (CMF) data
0	string	SBI			SoundBlaster instrument data
0	string	Creative\ Voice\ File	Creative Labs voice data
# is this next line right?  it came this way...
>19	byte	0x1A
>23	byte	>0			- version %d
>22	byte	>0			\b.%d

# first entry is also the string "NTRK"
0	belong		0x4e54524b	MultiTrack sound data
>4	belong		x		- version %ld

# Extended MOD format (*.emd) (Greg Roelofs, newt@@uchicago.edu); NOT TESTED
# [based on posting 940824 by "Dirk/Elastik", husberg@@lehtori.cc.tut.fi]
0	string		EMOD		Extended MOD sound data,
>4	byte&0xf0	x		version %d
>4	byte&0x0f	x		\b.%d,
>45	byte		x		%d instruments
>83	byte		0		(module)
>83	byte		1		(song)

# Real Audio (Magic .ra\0375)
0	belong		0x2e7261fd	RealAudio sound file
0	string		.RMF		RealMedia file

# MTM/669/FAR/S3M/ULT/XM format checking [Aaron Eppert, aeppert@@dialin.ind.net]
# Oct 31, 1995
0	string		MTM		MultiTracker Module sound file
#0	string		if		Composer 669 Module sound data
0	string		FAR		Module sound data
0	string		MAS_U		ULT(imate) Module sound data
0x2c	string		SCRM		ScreamTracker III Module sound data
0	string		Extended Module	Extended Module sound data

# Gravis UltraSound patches
# From <ache@@nagual.ru>

0	string		GF1PATCH110\0ID#000002\0	GUS patch
0	string		GF1PATCH100\0ID#000002\0	Old GUS	patch

#
# Taken from loader code from mikmod version 2.14
# by Steve McIntyre (stevem@@chiark.greenend.org.uk)
0	string	JN		extended 669 module data
0	string	MAS_UTrack_V00
>14	string	>/0		ultratracker V1.%.1s module sound data
0	string	UN05		MikMod UNI format module sound data
0	string	Extended\ Module: Fasttracker II module sound data
21	string	!SCREAM!	Screamtracker 2 module sound data
1080	string	M.K.		4-channel Protracker module sound data
1080	string	M!K!		4-channel Protracker module sound data
1080	string	FLT4		4-channel Startracker module sound data
1080	string	4CHN		4-channel Fasttracker module sound data
1080	string	6CHN		6-channel Fasttracker module sound data
1080	string	8CHN		8-channel Fasttracker module sound data
1080	string	CD81		8-channel Oktalyzer module sound data
1080	string	OKTA		8-channel Oktalyzer module sound data
# Not good enough.
#1082	string	CH
#>1080	string	>/0		%.2s-channel Fasttracker "oktalyzer" module sound data
1080	string	16CN		16-channel Taketracker module sound data
1080	string	32CN		32-channel Taketracker module sound data

# TOC sound files -Trevor Johnson <trevor@@jpj.net>
#
0       string          TOC             TOC sound file

# sidfiles <pooka@@iki.fi>
0	string		SIDPLAY\ INFOFILE	Sidplay info file
0	string		PSID			PlaySID v2.2+ (AMIGA) sidtune
>4	beshort		>0			w/ header v%d,
>14	beshort		=1			single song,
>14	beshort		>1			%d songs,
>16	beshort		>0			default song: %d

# IRCAM <mpruett@@sgi.com>
# VAX and MIPS files are little-endian; Sun and NeXT are big-endian
0	belong		0x64a30100		IRCAM file (VAX)
0	belong		0x64a30200		IRCAM file (Sun)
0	belong		0x64a30300		IRCAM file (MIPS little-endian)
0	belong		0x64a30400		IRCAM file (NeXT)

# NIST SPHERE <mpruett@@sgi.com>
0	string		NIST_1A\n\ \ \ 1024\n	NIST SPHERE file

# Sample Vision <mpruett@@sgi.com>
0	string		SOUND\ SAMPLE\ DATA\ 	Sample Vision file

# Audio Visual Research <mpruett@@sgi.com>
0	string		2BIT			Audio Visual Research file

# SGI SoundTrack <mpruett@@sgi.com>
0	string		_SGI_SoundTrack		SGI SoundTrack project file
# ID3 version 2 tags <waschk@@informatik.uni-rostock.de>
0	string		ID3	MP3 file with ID3 version 2.
>3	ubyte	<0xff	\b%d.
>4	ubyte	<0xff	\b%d tag

# NSF (NES sound file) magic
0	string		NESM\x1a	NES Sound File
>14	string		>\0		("%s" by
>46	string		>\0		%s, copyright
>78	string		>\0		%s),
>5	byte		x		version %d,
>6	byte		x		%d tracks,
>122	byte&0x2	=1		dual PAL/NTSC
>122	byte&0x1	=1		PAL
>122	byte&0x1	=0		NTSC

# Impuse tracker module (audio/x-it)
0	string		IMPM		Impulse Tracker module sound data -
>4	string		>\0		"%s"

# Impulse Tracker data files <collver1@@attbi.com>
0	string		IMPS		Impulse Tracker Sample
>18	byte		&2		16 bit
>18	byte		^2		8 bit
>18	byte		&4		stereo
>18	byte		^4		mono
0	string		IMPI		Impulse Tracker Instrument
>28	leshort		!0		ITv%x
>30	byte		!0		%d samples
0	string		IMPM		Impulse Tracker Module
>40	leshort		!0		compatible w/ITv%x
>42	leshort		!0		created w/ITv%x

# Imago Orpheus module (audio/x-imf)
60	string		IM10		Imago Orpheus module sound data -
>0	string		>\0		"%s"

# Scream Tracker sample files <collver1@@attbi.com>
76	string		SCRS		Scream Tracker Sample
>0	byte		1		sample
>0	byte		2		adlib melody
>0	byte		>2		adlib drum
>31	byte		&2		stereo
>31	byte		^2		mono
>31	byte		&4		16bit little endian
>31	byte		^4		8bit
>30	byte		0		unpacked
>30	byte		1		packed

# Yamaha TX Wave audio files <collver1@@attbi.com>
0	string		LM8953		Yamaha TX Wave
>22	byte		0x49		looped
>22	byte		0xC9		non-looped
>23	byte		1		33kHz
>23	byte		2		50kHz
>23	byte		3		16kHz
@


1.17
log
@Yamaha TX Wave

from Ben Collver <collver1@@attbi.com> in misc/17487
@
text
@@


1.16
log
@add scream tracker sample magic

from Ben Collver <collver1@@attbi.com> in misc/17486
@
text
@d189 8
@


1.15
log
@move impulse tracker data files into audio
@
text
@d177 12
@


1.14
log
@end this destructive conflict
@
text
@d161 13
@


1.13
log
@conflict therapy
@
text
@d145 19
@


1.12
log
@resolve conflicts
@
text
@a138 3
# From Felix von Leitner <leitner@@fefe.de>
0	string		OggS	Ogg-Vorbis compressed sound file

d141 4
a144 1
0	string		ID3	mp3 file with ID3 2.0 tag
@


1.11
log
@resolve conflicts
@
text
@a122 1

d124 2
a125 1
0	belong		0x64a30400		IRCAM file (NeXT)
d128 1
a128 1
0	belong		0x0001a364		IRCAM file
d141 4
@


1.10
log
@Resolve corn flakes.
@
text
@d105 3
a107 2
1082	string	CH
>1080	string	>/0		%.2s-channel Fasttracker "oktalyzer" module sound data
d122 19
@


1.9
log
@Add sidplay information, submitted in PR 7918 by Antti Kantee <pooka@@iki.fi>
@
text
@d70 2
a71 1
0	belong		0x2e7261fd	realaudio sound file
d76 1
a76 1
0	string		if		Composer 669 Module sound data
d114 1
a114 134
# Show MPEG level, layer, kbit/s, hz, stereo/mono for an MPG audio file.
# This section is lengthy because the kbit/s rate depends on the
# level and layer, and file(1) doesn't allow math on the values.
# From <ckane@@best.com>
#
####### MPEG begins with three hex 'f' nibbles.
0	beshort&0xfff0	0xfff0		MPEG
####### Level 2
>1	byte&0x08	0x00		2.0
>>1	byte&0x06	0x00		Layer Unknown,
####### Level 2, Layers I, II, and III
>>1	byte&0x06	0x02		Layer III,
>>>2	byte&0xf0	0x00		0 kbit/s,
>>>2	byte&0xf0	0x10		8 kbit/s,
>>>2	byte&0xf0	0x20		16 kbit/s,
>>>2	byte&0xf0	0x30		24 kbit/s,
>>>2	byte&0xf0	0x40		32 kbit/s,
>>>2	byte&0xf0	0x50		40 kbit/s,
>>>2	byte&0xf0	0x60		48 kbit/s,
>>>2	byte&0xf0	0x70		56 kbit/s,
>>>2	byte&0xf0	0x80		64 kbit/s,
>>>2	byte&0xf0	0x90		80 kbit/s,
>>>2	byte&0xf0	0xa0		96 kbit/s,
>>>2	byte&0xf0	0xb0		112 kbit/s,
>>>2	byte&0xf0	0xc0		128 kbit/s,
>>>2	byte&0xf0	0xd0		144 kbit/s,
>>>2	byte&0xf0	0xe0		160 kbit/s,
>>>2	byte&0xf0	0xf0		? kbit/s,
>>1	byte&0x06	0x04		Layer II,
>>>2	byte&0xf0	0x00		0 kbit/s,
>>>2	byte&0xf0	0x10		8 kbit/s,
>>>2	byte&0xf0	0x20		16 kbit/s,
>>>2	byte&0xf0	0x30		24 kbit/s,
>>>2	byte&0xf0	0x40		32 kbit/s,
>>>2	byte&0xf0	0x50		40 kbit/s,
>>>2	byte&0xf0	0x60		48 kbit/s,
>>>2	byte&0xf0	0x70		56 kbit/s,
>>>2	byte&0xf0	0x80		64 kbit/s,
>>>2	byte&0xf0	0x90		80 kbit/s,
>>>2	byte&0xf0	0xa0		96 kbit/s,
>>>2	byte&0xf0	0xb0		112 kbit/s,
>>>2	byte&0xf0	0xc0		128 kbit/s,
>>>2	byte&0xf0	0xd0		144 kbit/s,
>>>2	byte&0xf0	0xe0		160 kbit/s,
>>>2	byte&0xf0	0xf0		? kbit/s,
>>1	byte&0x06	0x06		Layer I,
>>>2	byte&0xf0	0x00		0 kbit/s,
>>>2	byte&0xf0	0x10		32 kbit/s,
>>>2	byte&0xf0	0x20		48 kbit/s,
>>>2	byte&0xf0	0x30		56 kbit/s,
>>>2	byte&0xf0	0x40		64 kbit/s,
>>>2	byte&0xf0	0x50		80 kbit/s,
>>>2	byte&0xf0	0x60		96 kbit/s,
>>>2	byte&0xf0	0x70		112 kbit/s,
>>>2	byte&0xf0	0x80		128 kbit/s,
>>>2	byte&0xf0	0x90		144 kbit/s,
>>>2	byte&0xf0	0xa0		160 kbit/s,
>>>2	byte&0xf0	0xb0		176 kbit/s,
>>>2	byte&0xf0	0xc0		192 kbit/s,
>>>2	byte&0xf0	0xd0		224 kbit/s,
>>>2	byte&0xf0	0xe0		256 kbit/s,
>>>2	byte&0xf0	0xf0		? kbit/s,
####### Level 2, Hz
>>2	byte&0x0c	0x00		22050 Hz
>>2	byte&0x0c	0x04		24000 Hz
>>2	byte&0x0c	0x08		16000 Hz
>>2	byte&0x0c	0x0c		? Hz
####### Level 1 decoding
>1	byte&0x08	0x08		1.0
>>1	byte&0x06	0x00		Layer Unknown.
####### Level 1, Layers I, II, and III
>>1	byte&0x06	0x02		Layer III,
>>>2	byte&0xf0	0x00		0 kbit/s,
>>>2	byte&0xf0	0x10		32 kbit/s,
>>>2	byte&0xf0	0x20		40 kbit/s,
>>>2	byte&0xf0	0x30		48 kbit/s,
>>>2	byte&0xf0	0x40		56 kbit/s,
>>>2	byte&0xf0	0x50		64 kbit/s,
>>>2	byte&0xf0	0x60		80 kbit/s,
>>>2	byte&0xf0	0x70		96 kbit/s,
>>>2	byte&0xf0	0x80		112 kbit/s,
>>>2	byte&0xf0	0x90		128 kbit/s,
>>>2	byte&0xf0	0xa0		160 kbit/s,
>>>2	byte&0xf0	0xb0		192 kbit/s,
>>>2	byte&0xf0	0xc0		224 kbit/s,
>>>2	byte&0xf0	0xd0		256 kbit/s,
>>>2	byte&0xf0	0xe0		320 kbit/s,
>>>2	byte&0xf0	0xf0		? kbit/s,
>>1	byte&0x06	0x04		Layer II,
>>>2	byte&0xf0	0x00		0 kbit/s,
>>>2	byte&0xf0	0x10		32 kbit/s,
>>>2	byte&0xf0	0x20		48 kbit/s,
>>>2	byte&0xf0	0x30		56 kbit/s,
>>>2	byte&0xf0	0x40		64 kbit/s,
>>>2	byte&0xf0	0x50		80 kbit/s,
>>>2	byte&0xf0	0x60		96 kbit/s,
>>>2	byte&0xf0	0x70		112 kbit/s,
>>>2	byte&0xf0	0x80		128 kbit/s,
>>>2	byte&0xf0	0x90		160 kbit/s,
>>>2	byte&0xf0	0xa0		192 kbit/s,
>>>2	byte&0xf0	0xb0		224 kbit/s,
>>>2	byte&0xf0	0xc0		256 kbit/s,
>>>2	byte&0xf0	0xd0		320 kbit/s,
>>>2	byte&0xf0	0xe0		384 kbit/s,
>>>2	byte&0xf0	0xf0		? kbit/s,
>>1	byte&0x06	0x06		Layer I,
>>>2	byte&0xf0	0x00		0 kbit/s,
>>>2	byte&0xf0	0x10		32 kbit/s,
>>>2	byte&0xf0	0x20		64 kbit/s,
>>>2	byte&0xf0	0x30		96 kbit/s,
>>>2	byte&0xf0	0x40		128 kbit/s,
>>>2	byte&0xf0	0x50		160 kbit/s,
>>>2	byte&0xf0	0x60		192 kbit/s,
>>>2	byte&0xf0	0x70		224 kbit/s,
>>>2	byte&0xf0	0x80		256 kbit/s,
>>>2	byte&0xf0	0x90		288 kbit/s,
>>>2	byte&0xf0	0xa0		320 kbit/s,
>>>2	byte&0xf0	0xb0		352 kbit/s,
>>>2	byte&0xf0	0xc0		384 kbit/s,
>>>2	byte&0xf0	0xd0		416 kbit/s,
>>>2	byte&0xf0	0xe0		448 kbit/s,
>>>2	byte&0xf0	0xf0		? kbit/s,
####### Level 2, Hz
>>2	byte&0x0c	0x00		44100 Hz
>>2	byte&0x0c	0x04		48000 Hz
>>2	byte&0x0c	0x08		32000 Hz
>>2	byte&0x0c	0x0c		? Hz
####### Stereo or Mono
>3	byte&0xc0	0x00		stereo
>3	byte&0xc0	0x40		joint-stereo
>3	byte&0xc0	0x80		dual-channel
>3	byte&0xc0	0xc0		mono
#
# sidfiles
@


1.9.2.1
log
@Pull up to last week's -current.
@
text
@d70 1
a70 2
0	belong		0x2e7261fd	RealAudio sound file
0	string		.RMF		RealMedia file
d75 1
a75 1
#0	string		if		Composer 669 Module sound data
d113 134
a246 1
# sidfiles <pooka@@iki.fi>
@


1.8
log
@Add "mp3" audio file information to file(1)/magic
per PR 6497 by C Kane <ckane@@best.com>
@
text
@d245 8
@


1.7
log
@resolve corn flakes.
@
text
@d112 133
@


1.6
log
@bring in changes from file-3.22
@
text
@d47 1
a47 1
>11	byte	>1			using %d channels
a59 11
# Microsoft WAVE format (*.wav)
0	string		RIFF		Microsoft RIFF
>8	string		WAVE		\b, WAVE audio data
>>34	leshort		>0		\b, %d bit
>>22	leshort		=1		\b, mono
>>22	leshort		=2		\b, stereo
>>22	leshort		>2		\b, %d channels
>>24	lelong		>0		%d Hz
# AVI == Audio Video Interleave
>8      string          AVI\            \b, AVI data

d80 32
@


1.5
log
@Changes from file-3.21
@
text
@d19 4
a60 1
# [GRR 950115:  probably all of the shorts and longs should be leshort/lelong]
d63 5
a67 5
>>34	short		>0		\b, %d bit
>>22	short		=1		\b, mono
>>22	short		=2		\b, stereo
>>22	short		>2		\b, %d channels
>>24	long		>0		%d Hz
a78 3

# Real Audio (Magic .ra\0375)
0	belong		0x2e7261fd	realaudio sound file
@


1.4
log
@Update to file-3.19.
- Magic fixes
- MAGIC environment variable processing
- Better LEGAL.NOTICE
- -m magic : separated list of magic files processing
@
text
@d3 1
a3 1
# audio:  file(1) magic for sound formats
d59 8
a66 6
>8	string		WAVE		- WAVE format
>34	short		>0		%d bit
>22	short		=1		Mono
>22	short		=2		Stereo
>22	short		>2		%d Channels
>24	long		>0		%d Hz
d76 15
@


1.3
log
@Integrated file-3.17
@
text
@a39 5
# Bytes 0-3 of AIFF, AIFF-C, & 8SVX audio files are "FORM"
8	string		AIFF		AIFF audio data
8	string		AIFC		AIFF-C audio data
8	string		8SVX		IFF/8SVX audio data

@


1.2
log
@Updated to file-3.16; fixes PR867
@
text
@d5 2
a6 1
# from Jan Nicolai Langfeldt <janl@@ifi.uio.no>,
d70 9
@


1.1
log
@New updated magic database from Ian Darwin (plus some fixes from me
to images, tex, and audio).  QMAGIC exectables are detected.
@
text
@d1 3
d5 1
a5 1
# Sound formats, from Jan Nicolai Langfeldt <janl@@ifi.uio.no>,
d9 3
a11 3
0	string		.snd		audio data:
>12	belong		1		8-bit u-law,
>12	belong		2		8-bit linear PCM,
d15 3
a17 3
>12	belong		6		32-bit floating point,
>12	belong		7		64-bit floating point,
>12	belong		23		compressed (G.721 ADPCM),
d21 2
a22 1
>16	belong		x		%d Hz
a24 1
# (0x0064732E in little-endian encoding).
d26 2
a27 2
>12	lelong		1		8-bit u-law,
>12	lelong		2		8-bit linear PCM,
d31 3
a33 3
>12	lelong		6		32-bit floating point,
>12	lelong		7		64-bit floating point,
>12	lelong		23		compressed (G.721 ADPCM),
d37 2
a38 1
>16	lelong		x		%d Hz
d43 26
a68 5
# Bytes 0-3 of Waveform (*.wav) audio files are "RIFF"
8	string		WAVE		Waveform audio data
0	string		Creative\ Voice\ File	Soundblaster audio data
0	long		0x4e54524b	MultiTrack sound data file
>4	long		x		- version %ld
@


1.1.1.1
log
@file-3.26
@
text
@a0 3

#------------------------------------------------------------------------------
# audio:  file(1) magic for sound formats (see also "iff")
d2 1
a2 2
# Jan Nicolai Langfeldt (janl@@ifi.uio.no), Dan Quinlan (quinlan@@yggdrasil.com),
# and others
d6 3
a8 3
0	string		.snd		Sun/NeXT audio data:
>12	belong		1		8-bit ISDN u-law,
>12	belong		2		8-bit linear PCM [REF-PCM],
d12 3
a14 7
>12	belong		6		32-bit IEEE floating point,
>12	belong		7		64-bit IEEE floating point,
>12	belong		23		8-bit ISDN u-law compressed (CCITT G.721 ADPCM voice data encoding),
>12	belong		24		compressed (8-bit G.722 ADPCM)
>12	belong		25		compressed (3-bit G.723 ADPCM),
>12	belong		26		compressed (5-bit G.723 ADPCM),
>12	belong		27		8-bit A-law,
d18 1
a18 2
>16	belong		>0		%d Hz

d21 1
d23 2
a24 2
>12	lelong		1		8-bit ISDN u-law,
>12	lelong		2		8-bit linear PCM [REF-PCM],
d28 3
a30 3
>12	lelong		6		32-bit IEEE floating point,
>12	lelong		7		64-bit IEEE floating point,
>12	lelong		23		8-bit ISDN u-law compressed (CCITT G.721 ADPCM voice data encoding),
d34 10
a43 70
>16	lelong		>0		%d Hz

# Creative Labs AUDIO stuff
0	string	MThd			Standard MIDI data
>9 	byte	>0			(format %d)
>11	byte	>1			using %d tracks
0	string	CTMF			Creative Music (CMF) data
0	string	SBI			SoundBlaster instrument data
0	string	Creative\ Voice\ File	Creative Labs voice data
# is this next line right?  it came this way...
>19	byte	0x1A
>23	byte	>0			- version %d
>22	byte	>0			\b.%d

# first entry is also the string "NTRK"
0	belong		0x4e54524b	MultiTrack sound data
>4	belong		x		- version %ld

# Extended MOD format (*.emd) (Greg Roelofs, newt@@uchicago.edu); NOT TESTED
# [based on posting 940824 by "Dirk/Elastik", husberg@@lehtori.cc.tut.fi]
0	string		EMOD		Extended MOD sound data,
>4	byte&0xf0	x		version %d
>4	byte&0x0f	x		\b.%d,
>45	byte		x		%d instruments
>83	byte		0		(module)
>83	byte		1		(song)

# Real Audio (Magic .ra\0375)
0	belong		0x2e7261fd	realaudio sound file

# MTM/669/FAR/S3M/ULT/XM format checking [Aaron Eppert, aeppert@@dialin.ind.net]
# Oct 31, 1995
0	string		MTM		MultiTracker Module sound file
0	string		if		Composer 669 Module sound data
0	string		FAR		Module sound data
0	string		MAS_U		ULT(imate) Module sound data
0x2c	string		SCRM		ScreamTracker III Module sound data
0	string		Extended Module	Extended Module sound data

# Gravis UltraSound patches
# From <ache@@nagual.ru>

0	string		GF1PATCH110\0ID#000002\0	GUS patch
0	string		GF1PATCH100\0ID#000002\0	Old GUS	patch

#
# Taken from loader code from mikmod version 2.14
# by Steve McIntyre (stevem@@chiark.greenend.org.uk)
0	string	JN		extended 669 module data
0	string	MAS_UTrack_V00
>14	string	>/0		ultratracker V1.%.1s module sound data
0	string	UN05		MikMod UNI format module sound data
0	string	Extended\ Module: Fasttracker II module sound data
21	string	!SCREAM!	Screamtracker 2 module sound data
1080	string	M.K.		4-channel Protracker module sound data
1080	string	M!K!		4-channel Protracker module sound data
1080	string	FLT4		4-channel Startracker module sound data
1080	string	4CHN		4-channel Fasttracker module sound data
1080	string	6CHN		6-channel Fasttracker module sound data
1080	string	8CHN		8-channel Fasttracker module sound data
1080	string	CD81		8-channel Oktalyzer module sound data
1080	string	OKTA		8-channel Oktalyzer module sound data
1082	string	CH
>1080	string	>/0		%.2s-channel Fasttracker "oktalyzer" module sound data
1080	string	16CN		16-channel Taketracker module sound data
1080	string	32CN		32-channel Taketracker module sound data

# TOC sound files -Trevor Johnson <trevor@@jpj.net>
#
0       string          TOC             TOC sound file
@


1.1.1.2
log
@new version of file(1)
@
text
@d70 1
a70 2
0	belong		0x2e7261fd	RealAudio sound file
0	string		.RMF		RealMedia file
d75 1
a75 1
#0	string		if		Composer 669 Module sound data
a111 8

# sidfiles <pooka@@iki.fi>
0	string		SIDPLAY\ INFOFILE	Sidplay info file
0	string		PSID			PlaySID v2.2+ (AMIGA) sidtune
>4	beshort		>0			w/ header v%d,
>14	beshort		=1			single song,
>14	beshort		>1			%d songs,
>16	beshort		>0			default song: %d
@


1.1.1.3
log
@file 3.33
@
text
@d105 2
a106 3
# Not good enough.
#1082	string	CH
#>1080	string	>/0		%.2s-channel Fasttracker "oktalyzer" module sound data
a120 19


# IRCAM <mpruett@@sgi.com>
0	belong		0x64a30400		IRCAM file (NeXT)
0	belong		0x64a30200		IRCAM file (Sun)
0	belong		0x64a30300		IRCAM file (MIPS little-endian)
0	belong		0x0001a364		IRCAM file

# NIST SPHERE <mpruett@@sgi.com>
0	string		NIST_1A\n\ \ \ 1024\n	NIST SPHERE file

# Sample Vision <mpruett@@sgi.com>
0	string		SOUND\ SAMPLE\ DATA\ 	Sample Vision file

# Audio Visual Research <mpruett@@sgi.com>
0	string		2BIT			Audio Visual Research file

# From Felix von Leitner <leitner@@fefe.de>
0	string		OggS	Ogg-Vorbis compressed sound file
@


1.1.1.4
log
@file 3.36
@
text
@d123 1
d125 1
a125 2
# VAX and MIPS files are little-endian; Sun and NeXT are big-endian
0	belong		0x64a30100		IRCAM file (VAX)
d128 1
a128 1
0	belong		0x64a30400		IRCAM file (NeXT)
a140 4

# SGI SoundTrack <mpruett@@sgi.com>
0	string		_SGI_SoundTrack		SGI SoundTrack project file
0	string		ID3	mp3 file with ID3 2.0 tag
@


1.1.1.5
log
@file 3.38
@
text
@d139 3
d144 1
a144 4
# ID3 version 2 tags <waschk@@informatik.uni-rostock.de>
0	string		ID3	MP3 file with ID3 version 2.
>3	ubyte	<0xff	\b%d.
>4	ubyte	<0xff	\b%d tag
@


1.1.1.6
log
@file 3.39
@
text
@a144 19

# NSF (NES sound file) magic
0	string		NESM\x1a	NES Sound File
>14	string		>\0		("%s" by
>46	string		>\0		%s, copyright
>78	string		>\0		%s),
>5	byte		x		version %d,
>6	byte		x		%d tracks,
>122	byte&0x2	=1		dual PAL/NTSC
>122	byte&0x1	=1		PAL
>122	byte&0x1	=0		NTSC

# Impuse tracker module (audio/x-it)
0	string		IMPM		Impulse Tracker module sound data -
>4	string		>\0		"%s"

# Imago Orpheus module (audio/x-imf)
60	string		IM10		Imago Orpheus module sound data -
>0	string		>\0		"%s"
@


