audio 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635
  1. #------------------------------------------------------------------------------
  2. # audio: file(1) magic for sound formats (see also "iff")
  3. #
  4. # Jan Nicolai Langfeldt (janl@ifi.uio.no), Dan Quinlan (quinlan@yggdrasil.com),
  5. # and others
  6. #
  7. # Sun/NeXT audio data
  8. 0 string .snd Sun/NeXT audio data:
  9. >12 belong 1 8-bit ISDN mu-law,
  10. !:mime audio/basic
  11. >12 belong 2 8-bit linear PCM [REF-PCM],
  12. !:mime audio/basic
  13. >12 belong 3 16-bit linear PCM,
  14. !:mime audio/basic
  15. >12 belong 4 24-bit linear PCM,
  16. !:mime audio/basic
  17. >12 belong 5 32-bit linear PCM,
  18. !:mime audio/basic
  19. >12 belong 6 32-bit IEEE floating point,
  20. !:mime audio/basic
  21. >12 belong 7 64-bit IEEE floating point,
  22. !:mime audio/basic
  23. >12 belong 8 Fragmented sample data,
  24. >12 belong 10 DSP program,
  25. >12 belong 11 8-bit fixed point,
  26. >12 belong 12 16-bit fixed point,
  27. >12 belong 13 24-bit fixed point,
  28. >12 belong 14 32-bit fixed point,
  29. >12 belong 18 16-bit linear with emphasis,
  30. >12 belong 19 16-bit linear compressed,
  31. >12 belong 20 16-bit linear with emphasis and compression,
  32. >12 belong 21 Music kit DSP commands,
  33. >12 belong 23 8-bit ISDN mu-law compressed (CCITT G.721 ADPCM voice enc.),
  34. !:mime audio/x-adpcm
  35. >12 belong 24 compressed (8-bit CCITT G.722 ADPCM)
  36. >12 belong 25 compressed (3-bit CCITT G.723.3 ADPCM),
  37. >12 belong 26 compressed (5-bit CCITT G.723.5 ADPCM),
  38. >12 belong 27 8-bit A-law (CCITT G.711),
  39. >20 belong 1 mono,
  40. >20 belong 2 stereo,
  41. >20 belong 4 quad,
  42. >16 belong >0 %d Hz
  43. # DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format
  44. # that uses little-endian encoding and has a different magic number
  45. 0 lelong 0x0064732E DEC audio data:
  46. >12 lelong 1 8-bit ISDN mu-law,
  47. !:mime audio/x-dec-basic
  48. >12 lelong 2 8-bit linear PCM [REF-PCM],
  49. !:mime audio/x-dec-basic
  50. >12 lelong 3 16-bit linear PCM,
  51. !:mime audio/x-dec-basic
  52. >12 lelong 4 24-bit linear PCM,
  53. !:mime audio/x-dec-basic
  54. >12 lelong 5 32-bit linear PCM,
  55. !:mime audio/x-dec-basic
  56. >12 lelong 6 32-bit IEEE floating point,
  57. !:mime audio/x-dec-basic
  58. >12 lelong 7 64-bit IEEE floating point,
  59. !:mime audio/x-dec-basic
  60. >12 belong 8 Fragmented sample data,
  61. >12 belong 10 DSP program,
  62. >12 belong 11 8-bit fixed point,
  63. >12 belong 12 16-bit fixed point,
  64. >12 belong 13 24-bit fixed point,
  65. >12 belong 14 32-bit fixed point,
  66. >12 belong 18 16-bit linear with emphasis,
  67. >12 belong 19 16-bit linear compressed,
  68. >12 belong 20 16-bit linear with emphasis and compression,
  69. >12 belong 21 Music kit DSP commands,
  70. >12 lelong 23 8-bit ISDN mu-law compressed (CCITT G.721 ADPCM voice enc.),
  71. !:mime audio/x-dec-basic
  72. >12 belong 24 compressed (8-bit CCITT G.722 ADPCM)
  73. >12 belong 25 compressed (3-bit CCITT G.723.3 ADPCM),
  74. >12 belong 26 compressed (5-bit CCITT G.723.5 ADPCM),
  75. >12 belong 27 8-bit A-law (CCITT G.711),
  76. >20 lelong 1 mono,
  77. >20 lelong 2 stereo,
  78. >20 lelong 4 quad,
  79. >16 lelong >0 %d Hz
  80. # Creative Labs AUDIO stuff
  81. 0 string MThd Standard MIDI data
  82. !:mime audio/midi
  83. >8 beshort x (format %d)
  84. >10 beshort x using %d track
  85. >10 beshort >1 \bs
  86. >12 beshort&0x7fff x at 1/%d
  87. >12 beshort&0x8000 >0 SMPTE
  88. 0 string CTMF Creative Music (CMF) data
  89. !:mime audio/x-unknown
  90. 0 string SBI SoundBlaster instrument data
  91. !:mime audio/x-unknown
  92. 0 string Creative\ Voice\ File Creative Labs voice data
  93. !:mime audio/x-unknown
  94. # is this next line right? it came this way...
  95. >19 byte 0x1A
  96. >23 byte >0 - version %d
  97. >22 byte >0 \b.%d
  98. # first entry is also the string "NTRK"
  99. 0 belong 0x4e54524b MultiTrack sound data
  100. >4 belong x - version %ld
  101. # Extended MOD format (*.emd) (Greg Roelofs, newt@uchicago.edu); NOT TESTED
  102. # [based on posting 940824 by "Dirk/Elastik", husberg@lehtori.cc.tut.fi]
  103. 0 string EMOD Extended MOD sound data,
  104. >4 byte&0xf0 x version %d
  105. >4 byte&0x0f x \b.%d,
  106. >45 byte x %d instruments
  107. >83 byte 0 (module)
  108. >83 byte 1 (song)
  109. # Real Audio (Magic .ra\0375)
  110. 0 belong 0x2e7261fd RealAudio sound file
  111. !:mime audio/x-pn-realaudio
  112. 0 string .RMF RealMedia file
  113. !:mime application/vnd.rn-realmedia
  114. #video/x-pn-realvideo
  115. #video/vnd.rn-realvideo
  116. #application/vnd.rn-realmedia
  117. # sigh, there are many mimes for that but the above are the most common.
  118. # MTM/669/FAR/S3M/ULT/XM format checking [Aaron Eppert, aeppert@dialin.ind.net]
  119. # Oct 31, 1995
  120. # fixed by <doj@cubic.org> 2003-06-24
  121. # Too short...
  122. #0 string MTM MultiTracker Module sound file
  123. #0 string if Composer 669 Module sound data
  124. #0 string JN Composer 669 Module sound data (extended format)
  125. 0 string MAS_U ULT(imate) Module sound data
  126. #0 string FAR Module sound data
  127. #>4 string >\15 Title: "%s"
  128. 0x2c string SCRM ScreamTracker III Module sound data
  129. >0 string >\0 Title: "%s"
  130. # Gravis UltraSound patches
  131. # From <ache@nagual.ru>
  132. 0 string GF1PATCH110\0ID#000002\0 GUS patch
  133. 0 string GF1PATCH100\0ID#000002\0 Old GUS patch
  134. # mime types according to http://www.geocities.com/nevilo/mod.htm:
  135. # audio/it .it
  136. # audio/x-zipped-it .itz
  137. # audio/xm fasttracker modules
  138. # audio/x-s3m screamtracker modules
  139. # audio/s3m screamtracker modules
  140. # audio/x-zipped-mod mdz
  141. # audio/mod mod
  142. # audio/x-mod All modules (mod, s3m, 669, mtm, med, xm, it, mdz, stm, itz, xmz, s3z)
  143. #
  144. # Taken from loader code from mikmod version 2.14
  145. # by Steve McIntyre (stevem@chiark.greenend.org.uk)
  146. # <doj@cubic.org> added title printing on 2003-06-24
  147. 0 string MAS_UTrack_V00
  148. >14 string >/0 ultratracker V1.%.1s module sound data
  149. !:mime audio/x-mod
  150. #audio/x-tracker-module
  151. 0 string UN05 MikMod UNI format module sound data
  152. 0 string Extended\ Module: Fasttracker II module sound data
  153. !:mime audio/x-mod
  154. #audio/x-tracker-module
  155. >17 string >\0 Title: "%s"
  156. 21 string/c =!SCREAM! Screamtracker 2 module sound data
  157. !:mime audio/x-mod
  158. #audio/x-screamtracker-module
  159. 21 string BMOD2STM Screamtracker 2 module sound data
  160. !:mime audio/x-mod
  161. #audio/x-screamtracker-module
  162. 1080 string M.K. 4-channel Protracker module sound data
  163. !:mime audio/x-mod
  164. #audio/x-protracker-module
  165. >0 string >\0 Title: "%s"
  166. 1080 string M!K! 4-channel Protracker module sound data
  167. !:mime audio/x-mod
  168. #audio/x-protracker-module
  169. >0 string >\0 Title: "%s"
  170. 1080 string FLT4 4-channel Startracker module sound data
  171. !:mime audio/x-mod
  172. #audio/x-startracker-module
  173. >0 string >\0 Title: "%s"
  174. 1080 string FLT8 8-channel Startracker module sound data
  175. !:mime audio/x-mod
  176. #audio/x-startracker-module
  177. >0 string >\0 Title: "%s"
  178. 1080 string 4CHN 4-channel Fasttracker module sound data
  179. !:mime audio/x-mod
  180. #audio/x-fasttracker-module
  181. >0 string >\0 Title: "%s"
  182. 1080 string 6CHN 6-channel Fasttracker module sound data
  183. !:mime audio/x-mod
  184. #audio/x-fasttracker-module
  185. >0 string >\0 Title: "%s"
  186. 1080 string 8CHN 8-channel Fasttracker module sound data
  187. !:mime audio/x-mod
  188. #audio/x-fasttracker-module
  189. >0 string >\0 Title: "%s"
  190. 1080 string CD81 8-channel Octalyser module sound data
  191. !:mime audio/x-mod
  192. #audio/x-octalysertracker-module
  193. >0 string >\0 Title: "%s"
  194. 1080 string OKTA 8-channel Octalyzer module sound data
  195. !:mime audio/x-mod
  196. #audio/x-octalysertracker-module
  197. >0 string >\0 Title: "%s"
  198. # Not good enough.
  199. #1082 string CH
  200. #>1080 string >/0 %.2s-channel Fasttracker "oktalyzer" module sound data
  201. 1080 string 16CN 16-channel Taketracker module sound data
  202. !:mime audio/x-mod
  203. #audio/x-taketracker-module
  204. >0 string >\0 Title: "%s"
  205. 1080 string 32CN 32-channel Taketracker module sound data
  206. !:mime audio/x-mod
  207. #audio/x-taketracker-module
  208. >0 string >\0 Title: "%s"
  209. # TOC sound files -Trevor Johnson <trevor@jpj.net>
  210. #
  211. 0 string TOC TOC sound file
  212. # sidfiles <pooka@iki.fi>
  213. # added name,author,(c) and new RSID type by <doj@cubic.org> 2003-06-24
  214. 0 string SIDPLAY\ INFOFILE Sidplay info file
  215. 0 string PSID PlaySID v2.2+ (AMIGA) sidtune
  216. >4 beshort >0 w/ header v%d,
  217. >14 beshort =1 single song,
  218. >14 beshort >1 %d songs,
  219. >16 beshort >0 default song: %d
  220. >0x16 string >\0 name: "%s"
  221. >0x36 string >\0 author: "%s"
  222. >0x56 string >\0 copyright: "%s"
  223. 0 string RSID RSID sidtune PlaySID compatible
  224. >4 beshort >0 w/ header v%d,
  225. >14 beshort =1 single song,
  226. >14 beshort >1 %d songs,
  227. >16 beshort >0 default song: %d
  228. >0x16 string >\0 name: "%s"
  229. >0x36 string >\0 author: "%s"
  230. >0x56 string >\0 copyright: "%s"
  231. # IRCAM <mpruett@sgi.com>
  232. # VAX and MIPS files are little-endian; Sun and NeXT are big-endian
  233. 0 belong 0x64a30100 IRCAM file (VAX)
  234. 0 belong 0x64a30200 IRCAM file (Sun)
  235. 0 belong 0x64a30300 IRCAM file (MIPS little-endian)
  236. 0 belong 0x64a30400 IRCAM file (NeXT)
  237. # NIST SPHERE <mpruett@sgi.com>
  238. 0 string NIST_1A\n\ \ \ 1024\n NIST SPHERE file
  239. # Sample Vision <mpruett@sgi.com>
  240. 0 string SOUND\ SAMPLE\ DATA\ Sample Vision file
  241. # Audio Visual Research <tonigonenstein@users.sourceforge.net>
  242. 0 string 2BIT Audio Visual Research file,
  243. >12 beshort =0 mono,
  244. >12 beshort =-1 stereo,
  245. >14 beshort x %d bits
  246. >16 beshort =0 unsigned,
  247. >16 beshort =-1 signed,
  248. >22 belong&0x00ffffff x %d Hz,
  249. >18 beshort =0 no loop,
  250. >18 beshort =-1 loop,
  251. >21 ubyte <128 note %d,
  252. >22 byte =0 replay 5.485 KHz
  253. >22 byte =1 replay 8.084 KHz
  254. >22 byte =2 replay 10.971 Khz
  255. >22 byte =3 replay 16.168 Khz
  256. >22 byte =4 replay 21.942 KHz
  257. >22 byte =5 replay 32.336 KHz
  258. >22 byte =6 replay 43.885 KHz
  259. >22 byte =7 replay 47.261 KHz
  260. # SGI SoundTrack <mpruett@sgi.com>
  261. 0 string _SGI_SoundTrack SGI SoundTrack project file
  262. # ID3 version 2 tags <waschk@informatik.uni-rostock.de>
  263. 0 string ID3 Audio file with ID3 version 2.
  264. # ??? Normally such a file is an MP3 file, but this will give false positives
  265. !:mime audio/mpeg
  266. >3 ubyte <0xff \b%d
  267. #>4 ubyte <0xff \b%d tag
  268. >2584 string fLaC \b, FLAC encoding
  269. >>2588 byte&0x7f >0 \b, unknown version
  270. >>2588 byte&0x7f 0 \b
  271. # some common bits/sample values
  272. >>>2600 beshort&0x1f0 0x030 \b, 4 bit
  273. >>>2600 beshort&0x1f0 0x050 \b, 6 bit
  274. >>>2600 beshort&0x1f0 0x070 \b, 8 bit
  275. >>>2600 beshort&0x1f0 0x0b0 \b, 12 bit
  276. >>>2600 beshort&0x1f0 0x0f0 \b, 16 bit
  277. >>>2600 beshort&0x1f0 0x170 \b, 24 bit
  278. >>>2600 byte&0xe 0x0 \b, mono
  279. >>>2600 byte&0xe 0x2 \b, stereo
  280. >>>2600 byte&0xe 0x4 \b, 3 channels
  281. >>>2600 byte&0xe 0x6 \b, 4 channels
  282. >>>2600 byte&0xe 0x8 \b, 5 channels
  283. >>>2600 byte&0xe 0xa \b, 6 channels
  284. >>>2600 byte&0xe 0xc \b, 7 channels
  285. >>>2600 byte&0xe 0xe \b, 8 channels
  286. # some common sample rates
  287. >>>2597 belong&0xfffff0 0x0ac440 \b, 44.1 kHz
  288. >>>2597 belong&0xfffff0 0x0bb800 \b, 48 kHz
  289. >>>2597 belong&0xfffff0 0x07d000 \b, 32 kHz
  290. >>>2597 belong&0xfffff0 0x056220 \b, 22.05 kHz
  291. >>>2597 belong&0xfffff0 0x05dc00 \b, 24 kHz
  292. >>>2597 belong&0xfffff0 0x03e800 \b, 16 kHz
  293. >>>2597 belong&0xfffff0 0x02b110 \b, 11.025 kHz
  294. >>>2597 belong&0xfffff0 0x02ee00 \b, 12 kHz
  295. >>>2597 belong&0xfffff0 0x01f400 \b, 8 kHz
  296. >>>2597 belong&0xfffff0 0x177000 \b, 96 kHz
  297. >>>2597 belong&0xfffff0 0x0fa000 \b, 64 kHz
  298. >>>2601 byte&0xf >0 \b, >4G samples
  299. >2584 string !fLaC \b, MP3 encoding
  300. # NSF (NES sound file) magic
  301. 0 string NESM\x1a NES Sound File
  302. >14 string >\0 ("%s" by
  303. >46 string >\0 %s, copyright
  304. >78 string >\0 %s),
  305. >5 byte x version %d,
  306. >6 byte x %d tracks,
  307. >122 byte&0x2 =1 dual PAL/NTSC
  308. >122 byte&0x1 =1 PAL
  309. >122 byte&0x1 =0 NTSC
  310. # Impulse tracker module (audio/x-it)
  311. 0 string IMPM Impulse Tracker module sound data -
  312. !:mime audio/x-mod
  313. >4 string >\0 "%s"
  314. >40 leshort !0 compatible w/ITv%x
  315. >42 leshort !0 created w/ITv%x
  316. # Imago Orpheus module (audio/x-imf)
  317. 60 string IM10 Imago Orpheus module sound data -
  318. >0 string >\0 "%s"
  319. # From <collver1@attbi.com>
  320. # These are the /etc/magic entries to decode modules, instruments, and
  321. # samples in Impulse Tracker's native format.
  322. 0 string IMPS Impulse Tracker Sample
  323. >18 byte &2 16 bit
  324. >18 byte ^2 8 bit
  325. >18 byte &4 stereo
  326. >18 byte ^4 mono
  327. 0 string IMPI Impulse Tracker Instrument
  328. >28 leshort !0 ITv%x
  329. >30 byte !0 %d samples
  330. # Yamaha TX Wave: file(1) magic for Yamaha TX Wave audio files
  331. # From <collver1@attbi.com>
  332. 0 string LM8953 Yamaha TX Wave
  333. >22 byte 0x49 looped
  334. >22 byte 0xC9 non-looped
  335. >23 byte 1 33kHz
  336. >23 byte 2 50kHz
  337. >23 byte 3 16kHz
  338. # scream tracker: file(1) magic for Scream Tracker sample files
  339. #
  340. # From <collver1@attbi.com>
  341. 76 string SCRS Scream Tracker Sample
  342. >0 byte 1 sample
  343. >0 byte 2 adlib melody
  344. >0 byte >2 adlib drum
  345. >31 byte &2 stereo
  346. >31 byte ^2 mono
  347. >31 byte &4 16bit little endian
  348. >31 byte ^4 8bit
  349. >30 byte 0 unpacked
  350. >30 byte 1 packed
  351. # audio
  352. # From: Cory Dikkers <cdikkers@swbell.net>
  353. 0 string MMD0 MED music file, version 0
  354. 0 string MMD1 OctaMED Pro music file, version 1
  355. 0 string MMD3 OctaMED Soundstudio music file, version 3
  356. 0 string OctaMEDCmpr OctaMED Soundstudio compressed file
  357. 0 string MED MED_Song
  358. 0 string SymM Symphonie SymMOD music file
  359. #
  360. 0 string THX AHX version
  361. >3 byte =0 1 module data
  362. >3 byte =1 2 module data
  363. #
  364. 0 string OKTASONG Oktalyzer module data
  365. #
  366. 0 string DIGI\ Booster\ module\0 %s
  367. >20 byte >0 %c
  368. >>21 byte >0 \b%c
  369. >>>22 byte >0 \b%c
  370. >>>>23 byte >0 \b%c
  371. >610 string >\0 \b, "%s"
  372. #
  373. 0 string DBM0 DIGI Booster Pro Module
  374. >4 byte >0 V%X.
  375. >>5 byte x \b%02X
  376. >16 string >\0 \b, "%s"
  377. #
  378. 0 string FTMN FaceTheMusic module
  379. >16 string >\0d \b, "%s"
  380. # From: <doj@cubic.org> 2003-06-24
  381. 0 string AMShdr\32 Velvet Studio AMS Module v2.2
  382. 0 string Extreme Extreme Tracker AMS Module v1.3
  383. 0 string DDMF Xtracker DMF Module
  384. >4 byte x v%i
  385. >0xD string >\0 Title: "%s"
  386. >0x2B string >\0 Composer: "%s"
  387. 0 string DSM\32 Dynamic Studio Module DSM
  388. 0 string SONG DigiTrekker DTM Module
  389. 0 string DMDL DigiTrakker MDL Module
  390. 0 string PSM\32 Protracker Studio PSM Module
  391. 44 string PTMF Poly Tracker PTM Module
  392. >0 string >\32 Title: "%s"
  393. 0 string MT20 MadTracker 2.0 Module MT2
  394. 0 string RAD\40by\40REALiTY!! RAD Adlib Tracker Module RAD
  395. 0 string RTMM RTM Module
  396. 0x426 string MaDoKaN96 XMS Adlib Module
  397. >0 string >\0 Composer: "%s"
  398. 0 string AMF AMF Module
  399. >4 string >\0 Title: "%s"
  400. 0 string MODINFO1 Open Cubic Player Module Inforation MDZ
  401. 0 string Extended\40Instrument: Fast Tracker II Instrument
  402. # From: Takeshi Hamasaki <hma@syd.odn.ne.jp>
  403. # NOA Nancy Codec file
  404. 0 string \210NOA\015\012\032 NOA Nancy Codec Movie file
  405. # Yamaha SMAF format
  406. 0 string MMMD Yamaha SMAF file
  407. # Sharp Jisaku Melody format for PDC
  408. 0 string \001Sharp\040JisakuMelody SHARP Cell-Phone ringing Melody
  409. >20 string Ver01.00 Ver. 1.00
  410. >>32 byte x , %d tracks
  411. # Free lossless audio codec <http://flac.sourceforge.net>
  412. # From: Przemyslaw Augustyniak <silvathraec@rpg.pl>
  413. 0 string fLaC FLAC audio bitstream data
  414. !:mime audio/x-flac
  415. >4 byte&0x7f >0 \b, unknown version
  416. >4 byte&0x7f 0 \b
  417. # some common bits/sample values
  418. >>20 beshort&0x1f0 0x030 \b, 4 bit
  419. >>20 beshort&0x1f0 0x050 \b, 6 bit
  420. >>20 beshort&0x1f0 0x070 \b, 8 bit
  421. >>20 beshort&0x1f0 0x0b0 \b, 12 bit
  422. >>20 beshort&0x1f0 0x0f0 \b, 16 bit
  423. >>20 beshort&0x1f0 0x170 \b, 24 bit
  424. >>20 byte&0xe 0x0 \b, mono
  425. >>20 byte&0xe 0x2 \b, stereo
  426. >>20 byte&0xe 0x4 \b, 3 channels
  427. >>20 byte&0xe 0x6 \b, 4 channels
  428. >>20 byte&0xe 0x8 \b, 5 channels
  429. >>20 byte&0xe 0xa \b, 6 channels
  430. >>20 byte&0xe 0xc \b, 7 channels
  431. >>20 byte&0xe 0xe \b, 8 channels
  432. # some common sample rates
  433. >>17 belong&0xfffff0 0x0ac440 \b, 44.1 kHz
  434. >>17 belong&0xfffff0 0x0bb800 \b, 48 kHz
  435. >>17 belong&0xfffff0 0x07d000 \b, 32 kHz
  436. >>17 belong&0xfffff0 0x056220 \b, 22.05 kHz
  437. >>17 belong&0xfffff0 0x05dc00 \b, 24 kHz
  438. >>17 belong&0xfffff0 0x03e800 \b, 16 kHz
  439. >>17 belong&0xfffff0 0x02b110 \b, 11.025 kHz
  440. >>17 belong&0xfffff0 0x02ee00 \b, 12 kHz
  441. >>17 belong&0xfffff0 0x01f400 \b, 8 kHz
  442. >>17 belong&0xfffff0 0x177000 \b, 96 kHz
  443. >>17 belong&0xfffff0 0x0fa000 \b, 64 kHz
  444. >>21 byte&0xf >0 \b, >4G samples
  445. >>21 byte&0xf 0 \b
  446. >>>22 belong >0 \b, %u samples
  447. >>>22 belong 0 \b, length unknown
  448. # (ISDN) VBOX voice message file (Wolfram Kleff)
  449. 0 string VBOX VBOX voice message data
  450. # ReBorn Song Files (.rbs)
  451. # David J. Singer <doc@deadvirgins.org.uk>
  452. 8 string RB40 RBS Song file
  453. >29 string ReBorn created by ReBorn
  454. >37 string Propellerhead created by ReBirth
  455. # Synthesizer Generator and Kimwitu share their file format
  456. 0 string A#S#C#S#S#L#V#3 Synthesizer Generator or Kimwitu data
  457. # Kimwitu++ uses a slightly different magic
  458. 0 string A#S#C#S#S#L#HUB Kimwitu++ data
  459. # From "Simon Hosie
  460. 0 string TFMX-SONG TFMX module sound data
  461. # Monkey's Audio compressed audio format (.ape)
  462. # From danny.milo@gmx.net (Danny Milosavljevic)
  463. # New version from Abel Cheung <abel (@) oaka.org>
  464. 0 string MAC\040 Monkey's Audio compressed format
  465. >4 uleshort >0x0F8B version %d
  466. >>(0x08.l) uleshort =1000 with fast compression
  467. >>(0x08.l) uleshort =2000 with normal compression
  468. >>(0x08.l) uleshort =3000 with high compression
  469. >>(0x08.l) uleshort =4000 with extra high compression
  470. >>(0x08.l) uleshort =5000 with insane compression
  471. >>(0x08.l+18) uleshort =1 \b, mono
  472. >>(0x08.l+18) uleshort =2 \b, stereo
  473. >>(0x08.l+20) ulelong x \b, sample rate %d
  474. >4 uleshort <0x0F8C version %d
  475. >>6 uleshort =1000 with fast compression
  476. >>6 uleshort =2000 with normal compression
  477. >>6 uleshort =3000 with high compression
  478. >>6 uleshort =4000 with extra high compression
  479. >>6 uleshort =5000 with insane compression
  480. >>10 uleshort =1 \b, mono
  481. >>10 uleshort =2 \b, stereo
  482. >>12 ulelong x \b, sample rate %d
  483. # adlib sound files
  484. # From Gürkan Sengün <gurkan@linuks.mine.nu>, http://www.linuks.mine.nu
  485. 0 string RAWADATA RdosPlay RAW
  486. 1068 string RoR AMUSIC Adlib Tracker
  487. 0 string JCH EdLib
  488. 0 string mpu401tr MPU-401 Trakker
  489. 0 string SAdT Surprise! Adlib Tracker
  490. >4 byte x Version %d
  491. 0 string XAD! eXotic ADlib
  492. 0 string ofTAZ! eXtra Simple Music
  493. # Spectrum 128 tunes (.ay files).
  494. # From: Emanuel Haupt <ehaupt@critical.ch>
  495. 0 string ZXAYEMUL Spectrum 128 tune
  496. 0 string \0BONK BONK,
  497. #>5 byte x version %d
  498. >14 byte x %d channel(s),
  499. >15 byte =1 lossless,
  500. >15 byte =0 lossy,
  501. >16 byte x mid-side
  502. 384 string LockStream LockStream Embedded file (mostly MP3 on old Nokia phones)
  503. # format VQF (proprietary codec for sound)
  504. # some infos on the header file available at :
  505. # http://www.twinvq.org/english/technology_format.html
  506. 0 string TWIN97012000 VQF data
  507. >27 short 0 \b, Mono
  508. >27 short 1 \b, Stereo
  509. >31 short >0 \b, %d kbit/s
  510. >35 short >0 \b, %d kHz
  511. # Nelson A. de Oliveira (naoliv@gmail.com)
  512. # .eqf
  513. 0 string Winamp\ EQ\ library\ file %s
  514. # it will match only versions like v<digit>.<digit>
  515. # Since I saw only eqf files with version v1.1 I think that it's OK
  516. >23 string x \b%.4s
  517. # .preset
  518. 0 string [Equalizer\ preset] XMMS equalizer preset
  519. # .m3u
  520. 0 search/1 #EXTM3U M3U playlist text
  521. # .pls
  522. 0 search/1 [playlist] PLS playlist text
  523. # licq.conf
  524. 1 string [licq] LICQ configuration file
  525. # Atari ST audio files by Dirk Jagdmann <doj@cubic.org>
  526. 0 string ICE! SNDH Atari ST music
  527. 0 string SC68\ Music-file\ /\ (c)\ (BeN)jami sc68 Atari ST music
  528. # musepak support From: "Jiri Pejchal" <jiri.pejchal@gmail.com>
  529. 0 string MP+ Musepack audio
  530. >3 byte 255 \b, SV pre8
  531. >3 byte&0xF 0x6 \b, SV 6
  532. >3 byte&0xF 0x8 \b, SV 8
  533. >3 byte&0xF 0x7 \b, SV 7
  534. >>3 byte&0xF0 0x0 \b.0
  535. >>3 byte&0xF0 0x10 \b.1
  536. >>3 byte&0xF0 240 \b.15
  537. >>10 byte&0xF0 0x0 \b, no profile
  538. >>10 byte&0xF0 0x10 \b, profile 'Unstable/Experimental'
  539. >>10 byte&0xF0 0x50 \b, quality 0
  540. >>10 byte&0xF0 0x60 \b, quality 1
  541. >>10 byte&0xF0 0x70 \b, quality 2 (Telephone)
  542. >>10 byte&0xF0 0x80 \b, quality 3 (Thumb)
  543. >>10 byte&0xF0 0x90 \b, quality 4 (Radio)
  544. >>10 byte&0xF0 0xA0 \b, quality 5 (Standard)
  545. >>10 byte&0xF0 0xB0 \b, quality 6 (Xtreme)
  546. >>10 byte&0xF0 0xC0 \b, quality 7 (Insane)
  547. >>10 byte&0xF0 0xD0 \b, quality 8 (BrainDead)
  548. >>10 byte&0xF0 0xE0 \b, quality 9
  549. >>10 byte&0xF0 0xF0 \b, quality 10
  550. >>27 byte 0x0 \b, Buschmann 1.7.0-9, Klemm 0.90-1.05
  551. >>27 byte 102 \b, Beta 1.02
  552. >>27 byte 104 \b, Beta 1.04
  553. >>27 byte 105 \b, Alpha 1.05
  554. >>27 byte 106 \b, Beta 1.06
  555. >>27 byte 110 \b, Release 1.1
  556. >>27 byte 111 \b, Alpha 1.11
  557. >>27 byte 112 \b, Beta 1.12
  558. >>27 byte 113 \b, Alpha 1.13
  559. >>27 byte 114 \b, Beta 1.14
  560. >>27 byte 115 \b, Alpha 1.15
  561. # IMY
  562. # from http://filext.com/detaillist.php?extdetail=IMY
  563. # http://cellphones.about.com/od/cellularfaqs/f/rf_imelody.htm
  564. # http://download.ncl.ie/doc/api/ie/ncl/media/music/IMelody.html
  565. # http://www.wx800.com/msg/download/irda/iMelody.pdf
  566. 0 string BEGIN:IMELODY iMelody Ringtone Format
  567. # From: "Mateus Caruccio" <mateus@caruccio.com>
  568. # guitar pro v3,4,5 from http://filext.com/file-extension/gp3
  569. 0 string \030FICHIER\ GUITAR\ PRO\ v3. Guitar Pro Ver. 3 Tablature
  570. # From: "Leslie P. Polzer" <leslie.polzer@gmx.net>
  571. 60 string SONG SoundFX Module sound file
  572. # Type: Adaptive Multi-Rate Codec
  573. # URL: http://filext.com/detaillist.php?extdetail=AMR
  574. # From: Russell Coker <russell@coker.com.au>
  575. 0 string #!AMR Adaptive Multi-Rate Codec (GSM telephony)