audio 20 KB

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