audio.orig 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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 u-law,
  10. >12 belong 2 8-bit linear PCM [REF-PCM],
  11. >12 belong 3 16-bit linear PCM,
  12. >12 belong 4 24-bit linear PCM,
  13. >12 belong 5 32-bit linear PCM,
  14. >12 belong 6 32-bit IEEE floating point,
  15. >12 belong 7 64-bit IEEE floating point,
  16. >12 belong 23 8-bit ISDN u-law compressed (CCITT G.721 ADPCM voice data encoding),
  17. >12 belong 24 compressed (8-bit G.722 ADPCM)
  18. >12 belong 25 compressed (3-bit G.723 ADPCM),
  19. >12 belong 26 compressed (5-bit G.723 ADPCM),
  20. >12 belong 27 8-bit A-law,
  21. >20 belong 1 mono,
  22. >20 belong 2 stereo,
  23. >20 belong 4 quad,
  24. >16 belong >0 %d Hz
  25. # DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format
  26. # that uses little-endian encoding and has a different magic number
  27. 0 lelong 0x0064732E DEC audio data:
  28. >12 lelong 1 8-bit ISDN u-law,
  29. >12 lelong 2 8-bit linear PCM [REF-PCM],
  30. >12 lelong 3 16-bit linear PCM,
  31. >12 lelong 4 24-bit linear PCM,
  32. >12 lelong 5 32-bit linear PCM,
  33. >12 lelong 6 32-bit IEEE floating point,
  34. >12 lelong 7 64-bit IEEE floating point,
  35. >12 lelong 23 8-bit ISDN u-law compressed (CCITT G.721 ADPCM voice data encoding),
  36. >20 lelong 1 mono,
  37. >20 lelong 2 stereo,
  38. >20 lelong 4 quad,
  39. >16 lelong >0 %d Hz
  40. # Creative Labs AUDIO stuff
  41. 0 string MThd Standard MIDI data
  42. >9 byte >0 (format %d)
  43. >11 byte >1 using %d tracks
  44. 0 string CTMF Creative Music (CMF) data
  45. 0 string SBI SoundBlaster instrument data
  46. 0 string Creative\ Voice\ File Creative Labs voice data
  47. # is this next line right? it came this way...
  48. >19 byte 0x1A
  49. >23 byte >0 - version %d
  50. >22 byte >0 \b.%d
  51. # first entry is also the string "NTRK"
  52. 0 belong 0x4e54524b MultiTrack sound data
  53. >4 belong x - version %ld
  54. # Extended MOD format (*.emd) (Greg Roelofs, newt@uchicago.edu); NOT TESTED
  55. # [based on posting 940824 by "Dirk/Elastik", husberg@lehtori.cc.tut.fi]
  56. 0 string EMOD Extended MOD sound data,
  57. >4 byte&0xf0 x version %d
  58. >4 byte&0x0f x \b.%d,
  59. >45 byte x %d instruments
  60. >83 byte 0 (module)
  61. >83 byte 1 (song)
  62. # Real Audio (Magic .ra\0375)
  63. 0 belong 0x2e7261fd realaudio sound file
  64. # MTM/669/FAR/S3M/ULT/XM format checking [Aaron Eppert, aeppert@dialin.ind.net]
  65. # Oct 31, 1995
  66. 0 string MTM MultiTracker Module sound file
  67. 0 string if Composer 669 Module sound data
  68. 0 string FAR Module sound data
  69. 0 string MAS_U ULT(imate) Module sound data
  70. 0x2c string SCRM ScreamTracker III Module sound data
  71. 0 string Extended Module Extended Module sound data
  72. # Gravis UltraSound patches
  73. # From <ache@nagual.ru>
  74. 0 string GF1PATCH110\0ID#000002\0 GUS patch
  75. 0 string GF1PATCH100\0ID#000002\0 Old GUS patch
  76. #
  77. # Taken from loader code from mikmod version 2.14
  78. # by Steve McIntyre (stevem@chiark.greenend.org.uk)
  79. 0 string JN extended 669 module data
  80. 0 string MAS_UTrack_V00
  81. >14 string >/0 ultratracker V1.%.1s module sound data
  82. 0 string UN05 MikMod UNI format module sound data
  83. 0 string Extended\ Module: Fasttracker II module sound data
  84. 21 string !SCREAM! Screamtracker 2 module sound data
  85. 1080 string M.K. 4-channel Protracker module sound data
  86. 1080 string M!K! 4-channel Protracker module sound data
  87. 1080 string FLT4 4-channel Startracker module sound data
  88. 1080 string 4CHN 4-channel Fasttracker module sound data
  89. 1080 string 6CHN 6-channel Fasttracker module sound data
  90. 1080 string 8CHN 8-channel Fasttracker module sound data
  91. 1080 string CD81 8-channel Oktalyzer module sound data
  92. 1080 string OKTA 8-channel Oktalyzer module sound data
  93. 1082 string CH
  94. >1080 string >/0 %.2s-channel Fasttracker "oktalyzer" module sound data
  95. 1080 string 16CN 16-channel Taketracker module sound data
  96. 1080 string 32CN 32-channel Taketracker module sound data
  97. # TOC sound files -Trevor Johnson <trevor@jpj.net>
  98. #
  99. 0 string TOC TOC sound file