]> git.saurik.com Git - apple/file_cmds.git/blame - file/magdir/audio
file_cmds-60.tar.gz
[apple/file_cmds.git] / file / magdir / audio
CommitLineData
440bd198
A
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 channels
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# Microsoft WAVE format (*.wav)
610 string RIFF Microsoft RIFF
62>8 string WAVE \b, WAVE audio data
63>>34 leshort >0 \b, %d bit
64>>22 leshort =1 \b, mono
65>>22 leshort =2 \b, stereo
66>>22 leshort >2 \b, %d channels
67>>24 lelong >0 %d Hz
68# AVI == Audio Video Interleave
69>8 string AVI\ \b, AVI data
70
71# Extended MOD format (*.emd) (Greg Roelofs, newt@uchicago.edu); NOT TESTED
72# [based on posting 940824 by "Dirk/Elastik", husberg@lehtori.cc.tut.fi]
730 string EMOD Extended MOD sound data,
74>4 byte&0xf0 x version %d
75>4 byte&0x0f x \b.%d,
76>45 byte x %d instruments
77>83 byte 0 (module)
78>83 byte 1 (song)
79
80# Real Audio (Magic .ra\0375)
810 belong 0x2e7261fd realaudio sound file
82
83# MTM/669/FAR/S3M/ULT/XM format checking [Aaron Eppert, aeppert@dialin.ind.net]
84# Oct 31, 1995
850 string MTM MultiTracker Module sound file
860 string if Composer 669 Module sound data
870 string FAR Module sound data
880 string MAS_U ULT(imate) Module sound data
890x2c string SCRM ScreamTracker III Module sound data
900 string Extended Module Extended Module sound data