audio 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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. 0 string .RMF RealMedia file
  65. # MTM/669/FAR/S3M/ULT/XM format checking [Aaron Eppert, aeppert@dialin.ind.net]
  66. # Oct 31, 1995
  67. 0 string MTM MultiTracker Module sound file
  68. #0 string if Composer 669 Module sound data
  69. 0 string FAR Module sound data
  70. 0 string MAS_U ULT(imate) Module sound data
  71. 0x2c string SCRM ScreamTracker III Module sound data
  72. 0 string Extended Module Extended Module sound data
  73. # Gravis UltraSound patches
  74. # From <ache@nagual.ru>
  75. 0 string GF1PATCH110\0ID#000002\0 GUS patch
  76. 0 string GF1PATCH100\0ID#000002\0 Old GUS patch
  77. #
  78. # Taken from loader code from mikmod version 2.14
  79. # by Steve McIntyre (stevem@chiark.greenend.org.uk)
  80. 0 string JN extended 669 module data
  81. 0 string MAS_UTrack_V00
  82. >14 string >/0 ultratracker V1.%.1s module sound data
  83. 0 string UN05 MikMod UNI format module sound data
  84. 0 string Extended\ Module: Fasttracker II module sound data
  85. 21 string !SCREAM! Screamtracker 2 module sound data
  86. 1080 string M.K. 4-channel Protracker module sound data
  87. 1080 string M!K! 4-channel Protracker module sound data
  88. 1080 string FLT4 4-channel Startracker module sound data
  89. 1080 string 4CHN 4-channel Fasttracker module sound data
  90. 1080 string 6CHN 6-channel Fasttracker module sound data
  91. 1080 string 8CHN 8-channel Fasttracker module sound data
  92. 1080 string CD81 8-channel Oktalyzer module sound data
  93. 1080 string OKTA 8-channel Oktalyzer module sound data
  94. # Not good enough.
  95. #1082 string CH
  96. #>1080 string >/0 %.2s-channel Fasttracker "oktalyzer" module sound data
  97. 1080 string 16CN 16-channel Taketracker module sound data
  98. 1080 string 32CN 32-channel Taketracker module sound data
  99. # TOC sound files -Trevor Johnson <trevor@jpj.net>
  100. #
  101. 0 string TOC TOC sound file
  102. # sidfiles <pooka@iki.fi>
  103. 0 string SIDPLAY\ INFOFILE Sidplay info file
  104. 0 string PSID PlaySID v2.2+ (AMIGA) sidtune
  105. >4 beshort >0 w/ header v%d,
  106. >14 beshort =1 single song,
  107. >14 beshort >1 %d songs,
  108. >16 beshort >0 default song: %d
  109. # IRCAM <mpruett@sgi.com>
  110. # VAX and MIPS files are little-endian; Sun and NeXT are big-endian
  111. 0 belong 0x64a30100 IRCAM file (VAX)
  112. 0 belong 0x64a30200 IRCAM file (Sun)
  113. 0 belong 0x64a30300 IRCAM file (MIPS little-endian)
  114. 0 belong 0x64a30400 IRCAM file (NeXT)
  115. # NIST SPHERE <mpruett@sgi.com>
  116. 0 string NIST_1A\n\ \ \ 1024\n NIST SPHERE file
  117. # Sample Vision <mpruett@sgi.com>
  118. 0 string SOUND\ SAMPLE\ DATA\ Sample Vision file
  119. # Audio Visual Research <mpruett@sgi.com>
  120. 0 string 2BIT Audio Visual Research file
  121. # SGI SoundTrack <mpruett@sgi.com>
  122. 0 string _SGI_SoundTrack SGI SoundTrack project file
  123. 0 string ID3 mp3 file with ID3 2.0 tag
  124. # From Matt Zimmerman <mdz@debian.org>
  125. 0 string fLaC FLAC compressed audio stream data
  126. # (ISDN) VBOX voice message file (Wolfram Kleff)
  127. 0 string VBOX VBOX voice message data