Deleted Added
full compact
audio (69216) audio (80588)
1
2#------------------------------------------------------------------------------
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
9# Sun/NeXT audio data
100 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,
23>20 belong 1 mono,
24>20 belong 2 stereo,
25>20 belong 4 quad,
26>16 belong >0 %d Hz
27
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
300 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),
39>20 lelong 1 mono,
40>20 lelong 2 stereo,
41>20 lelong 4 quad,
42>16 lelong >0 %d Hz
43
44# Creative Labs AUDIO stuff
450 string MThd Standard MIDI data
46>9 byte >0 (format %d)
47>11 byte >1 using %d tracks
480 string CTMF Creative Music (CMF) data
490 string SBI SoundBlaster instrument data
500 string Creative\ Voice\ File Creative Labs voice data
51# is this next line right? it came this way...
52>19 byte 0x1A
53>23 byte >0 - version %d
54>22 byte >0 \b.%d
55
56# first entry is also the string "NTRK"
570 belong 0x4e54524b MultiTrack sound data
58>4 belong x - version %ld
59
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]
620 string EMOD Extended MOD sound data,
63>4 byte&0xf0 x version %d
64>4 byte&0x0f x \b.%d,
65>45 byte x %d instruments
66>83 byte 0 (module)
67>83 byte 1 (song)
68
69# Real Audio (Magic .ra\0375)
700 belong 0x2e7261fd RealAudio sound file
710 string .RMF RealMedia file
72
73# MTM/669/FAR/S3M/ULT/XM format checking [Aaron Eppert, aeppert@dialin.ind.net]
74# Oct 31, 1995
750 string MTM MultiTracker Module sound file
76#0 string if Composer 669 Module sound data
770 string FAR Module sound data
780 string MAS_U ULT(imate) Module sound data
790x2c string SCRM ScreamTracker III Module sound data
800 string Extended Module Extended Module sound data
81
82# Gravis UltraSound patches
83# From <ache@nagual.ru>
84
850 string GF1PATCH110\0ID#000002\0 GUS patch
860 string GF1PATCH100\0ID#000002\0 Old GUS patch
87
88#
89# Taken from loader code from mikmod version 2.14
90# by Steve McIntyre (stevem@chiark.greenend.org.uk)
910 string JN extended 669 module data
920 string MAS_UTrack_V00
93>14 string >/0 ultratracker V1.%.1s module sound data
940 string UN05 MikMod UNI format module sound data
950 string Extended\ Module: Fasttracker II module sound data
9621 string !SCREAM! Screamtracker 2 module sound data
971080 string M.K. 4-channel Protracker module sound data
981080 string M!K! 4-channel Protracker module sound data
991080 string FLT4 4-channel Startracker module sound data
1001080 string 4CHN 4-channel Fasttracker module sound data
1011080 string 6CHN 6-channel Fasttracker module sound data
1021080 string 8CHN 8-channel Fasttracker module sound data
1031080 string CD81 8-channel Oktalyzer module sound data
1041080 string OKTA 8-channel Oktalyzer module sound data
105# Not good enough.
106#1082 string CH
107#>1080 string >/0 %.2s-channel Fasttracker "oktalyzer" module sound data
1081080 string 16CN 16-channel Taketracker module sound data
1091080 string 32CN 32-channel Taketracker module sound data
110
111# TOC sound files -Trevor Johnson <trevor@jpj.net>
112#
1130 string TOC TOC sound file
114
115# sidfiles <pooka@iki.fi>
1160 string SIDPLAY\ INFOFILE Sidplay info file
1170 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
122
1
2#------------------------------------------------------------------------------
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
9# Sun/NeXT audio data
100 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,
23>20 belong 1 mono,
24>20 belong 2 stereo,
25>20 belong 4 quad,
26>16 belong >0 %d Hz
27
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
300 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),
39>20 lelong 1 mono,
40>20 lelong 2 stereo,
41>20 lelong 4 quad,
42>16 lelong >0 %d Hz
43
44# Creative Labs AUDIO stuff
450 string MThd Standard MIDI data
46>9 byte >0 (format %d)
47>11 byte >1 using %d tracks
480 string CTMF Creative Music (CMF) data
490 string SBI SoundBlaster instrument data
500 string Creative\ Voice\ File Creative Labs voice data
51# is this next line right? it came this way...
52>19 byte 0x1A
53>23 byte >0 - version %d
54>22 byte >0 \b.%d
55
56# first entry is also the string "NTRK"
570 belong 0x4e54524b MultiTrack sound data
58>4 belong x - version %ld
59
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]
620 string EMOD Extended MOD sound data,
63>4 byte&0xf0 x version %d
64>4 byte&0x0f x \b.%d,
65>45 byte x %d instruments
66>83 byte 0 (module)
67>83 byte 1 (song)
68
69# Real Audio (Magic .ra\0375)
700 belong 0x2e7261fd RealAudio sound file
710 string .RMF RealMedia file
72
73# MTM/669/FAR/S3M/ULT/XM format checking [Aaron Eppert, aeppert@dialin.ind.net]
74# Oct 31, 1995
750 string MTM MultiTracker Module sound file
76#0 string if Composer 669 Module sound data
770 string FAR Module sound data
780 string MAS_U ULT(imate) Module sound data
790x2c string SCRM ScreamTracker III Module sound data
800 string Extended Module Extended Module sound data
81
82# Gravis UltraSound patches
83# From <ache@nagual.ru>
84
850 string GF1PATCH110\0ID#000002\0 GUS patch
860 string GF1PATCH100\0ID#000002\0 Old GUS patch
87
88#
89# Taken from loader code from mikmod version 2.14
90# by Steve McIntyre (stevem@chiark.greenend.org.uk)
910 string JN extended 669 module data
920 string MAS_UTrack_V00
93>14 string >/0 ultratracker V1.%.1s module sound data
940 string UN05 MikMod UNI format module sound data
950 string Extended\ Module: Fasttracker II module sound data
9621 string !SCREAM! Screamtracker 2 module sound data
971080 string M.K. 4-channel Protracker module sound data
981080 string M!K! 4-channel Protracker module sound data
991080 string FLT4 4-channel Startracker module sound data
1001080 string 4CHN 4-channel Fasttracker module sound data
1011080 string 6CHN 6-channel Fasttracker module sound data
1021080 string 8CHN 8-channel Fasttracker module sound data
1031080 string CD81 8-channel Oktalyzer module sound data
1041080 string OKTA 8-channel Oktalyzer module sound data
105# Not good enough.
106#1082 string CH
107#>1080 string >/0 %.2s-channel Fasttracker "oktalyzer" module sound data
1081080 string 16CN 16-channel Taketracker module sound data
1091080 string 32CN 32-channel Taketracker module sound data
110
111# TOC sound files -Trevor Johnson <trevor@jpj.net>
112#
1130 string TOC TOC sound file
114
115# sidfiles <pooka@iki.fi>
1160 string SIDPLAY\ INFOFILE Sidplay info file
1170 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
122
123
124# IRCAM <mpruett@sgi.com>
123# IRCAM <mpruett@sgi.com>
1250 belong 0x64a30400 IRCAM file (NeXT)
124# VAX and MIPS files are little-endian; Sun and NeXT are big-endian
1250 belong 0x64a30100 IRCAM file (VAX)
1260 belong 0x64a30200 IRCAM file (Sun)
1270 belong 0x64a30300 IRCAM file (MIPS little-endian)
1260 belong 0x64a30200 IRCAM file (Sun)
1270 belong 0x64a30300 IRCAM file (MIPS little-endian)
1280 belong 0x0001a364 IRCAM file
1280 belong 0x64a30400 IRCAM file (NeXT)
129
130# NIST SPHERE <mpruett@sgi.com>
1310 string NIST_1A\n\ \ \ 1024\n NIST SPHERE file
132
133# Sample Vision <mpruett@sgi.com>
1340 string SOUND\ SAMPLE\ DATA\ Sample Vision file
135
136# Audio Visual Research <mpruett@sgi.com>
1370 string 2BIT Audio Visual Research file
138
139# From Felix von Leitner <leitner@fefe.de>
1400 string OggS Ogg-Vorbis compressed sound file
129
130# NIST SPHERE <mpruett@sgi.com>
1310 string NIST_1A\n\ \ \ 1024\n NIST SPHERE file
132
133# Sample Vision <mpruett@sgi.com>
1340 string SOUND\ SAMPLE\ DATA\ Sample Vision file
135
136# Audio Visual Research <mpruett@sgi.com>
1370 string 2BIT Audio Visual Research file
138
139# From Felix von Leitner <leitner@fefe.de>
1400 string OggS Ogg-Vorbis compressed sound file
141
142# SGI SoundTrack <mpruett@sgi.com>
1430 string _SGI_SoundTrack SGI SoundTrack project file
1440 string ID3 mp3 file with ID3 2.0 tag