2 #------------------------------------------------------------------------------
3 # audio: file(1) magic for sound formats (see also "iff")
5 # Jan Nicolai Langfeldt (janl@ifi.uio.no), Dan Quinlan (quinlan@yggdrasil.com),
10 0 string .snd Sun/NeXT audio data:
11 >12 belong 1 8-bit ISDN u-law,
12 >12 belong 2 8-bit linear PCM [REF-PCM],
13 >12 belong 3 16-bit linear PCM,
14 >12 belong 4 24-bit linear PCM,
15 >12 belong 5 32-bit linear PCM,
16 >12 belong 6 32-bit IEEE floating point,
17 >12 belong 7 64-bit IEEE floating point,
18 >12 belong 23 8-bit ISDN u-law compressed (CCITT G.721 ADPCM voice data encoding),
19 >12 belong 24 compressed (8-bit G.722 ADPCM)
20 >12 belong 25 compressed (3-bit G.723 ADPCM),
21 >12 belong 26 compressed (5-bit G.723 ADPCM),
22 >12 belong 27 8-bit A-law,
28 # DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format
29 # that uses little-endian encoding and has a different magic number
30 0 lelong 0x0064732E DEC audio data:
31 >12 lelong 1 8-bit ISDN u-law,
32 >12 lelong 2 8-bit linear PCM [REF-PCM],
33 >12 lelong 3 16-bit linear PCM,
34 >12 lelong 4 24-bit linear PCM,
35 >12 lelong 5 32-bit linear PCM,
36 >12 lelong 6 32-bit IEEE floating point,
37 >12 lelong 7 64-bit IEEE floating point,
38 >12 lelong 23 8-bit ISDN u-law compressed (CCITT G.721 ADPCM voice data encoding),
44 # Creative Labs AUDIO stuff
45 0 string MThd Standard MIDI data
46 >9 byte >0 (format %d)
47 >11 byte >1 using %d tracks
48 0 string CTMF Creative Music (CMF) data
49 0 string SBI SoundBlaster instrument data
50 0 string Creative\ Voice\ File Creative Labs voice data
51 # is this next line right? it came this way...
53 >23 byte >0 - version %d
56 # first entry is also the string "NTRK"
57 0 belong 0x4e54524b MultiTrack sound data
58 >4 belong x - version %ld
60 # Extended MOD format (*.emd) (Greg Roelofs, newt@uchicago.edu); NOT TESTED
61 # [based on posting 940824 by "Dirk/Elastik", husberg@lehtori.cc.tut.fi]
62 0 string EMOD Extended MOD sound data,
63 >4 byte&0xf0 x version %d
65 >45 byte x %d instruments
69 # Real Audio (Magic .ra\0375)
70 0 belong 0x2e7261fd RealAudio sound file
71 0 string .RMF RealMedia file
73 # MTM/669/FAR/S3M/ULT/XM format checking [Aaron Eppert, aeppert@dialin.ind.net]
75 0 string MTM MultiTracker Module sound file
76 #0 string if Composer 669 Module sound data
77 0 string FAR Module sound data
78 0 string MAS_U ULT(imate) Module sound data
79 0x2c string SCRM ScreamTracker III Module sound data
80 0 string Extended Module Extended Module sound data
82 # Gravis UltraSound patches
83 # From <ache@nagual.ru>
85 0 string GF1PATCH110\0ID#000002\0 GUS patch
86 0 string GF1PATCH100\0ID#000002\0 Old GUS patch
89 # Taken from loader code from mikmod version 2.14
90 # by Steve McIntyre (stevem@chiark.greenend.org.uk)
91 0 string JN extended 669 module data
92 0 string MAS_UTrack_V00
93 >14 string >/0 ultratracker V1.%.1s module sound data
94 0 string UN05 MikMod UNI format module sound data
95 0 string Extended\ Module: Fasttracker II module sound data
96 21 string !SCREAM! Screamtracker 2 module sound data
97 1080 string M.K. 4-channel Protracker module sound data
98 1080 string M!K! 4-channel Protracker module sound data
99 1080 string FLT4 4-channel Startracker module sound data
100 1080 string 4CHN 4-channel Fasttracker module sound data
101 1080 string 6CHN 6-channel Fasttracker module sound data
102 1080 string 8CHN 8-channel Fasttracker module sound data
103 1080 string CD81 8-channel Oktalyzer module sound data
104 1080 string OKTA 8-channel Oktalyzer module sound data
107 #>1080 string >/0 %.2s-channel Fasttracker "oktalyzer" module sound data
108 1080 string 16CN 16-channel Taketracker module sound data
109 1080 string 32CN 32-channel Taketracker module sound data
111 # TOC sound files -Trevor Johnson <trevor@jpj.net>
113 0 string TOC TOC sound file
115 # sidfiles <pooka@iki.fi>
116 0 string SIDPLAY\ INFOFILE Sidplay info file
117 0 string PSID PlaySID v2.2+ (AMIGA) sidtune
118 >4 beshort >0 w/ header v%d,
119 >14 beshort =1 single song,
120 >14 beshort >1 %d songs,
121 >16 beshort >0 default song: %d
123 # IRCAM <mpruett@sgi.com>
124 # VAX and MIPS files are little-endian; Sun and NeXT are big-endian
125 0 belong 0x64a30100 IRCAM file (VAX)
126 0 belong 0x64a30200 IRCAM file (Sun)
127 0 belong 0x64a30300 IRCAM file (MIPS little-endian)
128 0 belong 0x64a30400 IRCAM file (NeXT)
130 # NIST SPHERE <mpruett@sgi.com>
131 0 string NIST_1A\n\ \ \ 1024\n NIST SPHERE file
133 # Sample Vision <mpruett@sgi.com>
134 0 string SOUND\ SAMPLE\ DATA\ Sample Vision file
136 # Audio Visual Research <mpruett@sgi.com>
137 0 string 2BIT Audio Visual Research file
139 # SGI SoundTrack <mpruett@sgi.com>
140 0 string _SGI_SoundTrack SGI SoundTrack project file
141 # ID3 version 2 tags <waschk@informatik.uni-rostock.de>
142 0 string ID3 MP3 file with ID3 version 2.
144 >4 ubyte <0xff \b%d tag
146 # NSF (NES sound file) magic
147 0 string NESM\x1a NES Sound File
148 >14 string >\0 ("%s" by
149 >46 string >\0 %s, copyright
151 >5 byte x version %d,
153 >122 byte&0x2 =1 dual PAL/NTSC
155 >122 byte&0x1 =0 NTSC
157 # Impuse tracker module (audio/x-it)
158 0 string IMPM Impulse Tracker module sound data -
160 >40 leshort !0 compatible w/ITv%x
161 >42 leshort !0 created w/ITv%x
163 # Imago Orpheus module (audio/x-imf)
164 60 string IM10 Imago Orpheus module sound data -
167 # From <collver1@attbi.com>
168 # These are the /etc/magic entries to decode modules, instruments, and
169 # samples in Impulse Tracker's native format.
171 0 string IMPS Impulse Tracker Sample
176 0 string IMPI Impulse Tracker Instrument
178 >30 byte !0 %d samples
180 # Yamaha TX Wave: file(1) magic for Yamaha TX Wave audio files
181 # From <collver1@attbi.com>
182 0 string LM8953 Yamaha TX Wave
184 >22 byte 0xC9 non-looped
189 # scream tracker: file(1) magic for Scream Tracker sample files
191 # From <collver1@attbi.com>
192 76 string SCRS Scream Tracker Sample
194 >0 byte 2 adlib melody
195 >0 byte >2 adlib drum
198 >31 byte &4 16bit little endian
204 # From: Cory Dikkers <cdikkers@swbell.net>
205 0 string MMD0 MED music file, version 0
206 0 string MMD1 OctaMED Pro music file, version 1
207 0 string MMD3 OctaMED Soundstudio music file, version 3
208 0 string OctaMEDCmpr OctaMED Soundstudio compressed file
209 0 string MED MED_Song
210 0 string SymM Symphonie SymMOD music file
212 0 string THX AHX version
213 >3 byte =0 1 module data
214 >3 byte =1 2 module data
216 0 string OKTASONG Oktalyzer module data
218 0 string DIGI\ Booster\ module\0 %s
223 >610 string >\0 \b, "%s"
225 0 string DBM0 DIGI Booster Pro Module
228 >16 string >\0 \b, "%s"
230 0 string FTMN FaceTheMusic module
231 >16 string >\0d \b, "%s"
233 # From: Takeshi Hamasaki <hma@syd.odn.ne.jp>
234 # NOA Nancy Codec file
235 0 string \210NOA\015\012\032 NOA Nancy Codec Movie file
237 0 string MMMD Yamaha SMAF file
238 # Sharp Jisaku Melody format for PDC
239 0 string \001Sharp\040JisakuMelody SHARP Cell-Phone ringing Melody
240 >20 string Ver01.00 Ver. 1.00
241 >>32 byte x , %d tracks
243 # FLAC audio stream <URL:http://flac.sourceforge.net/>
244 # From: Dan Fandrich <dan@coneharvesters.com>
245 0 string fLaC FLAC audio stream data