1995-03-26 01:35:28 +03:00
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# audio: file(1) magic for sound formats
|
1993-06-10 04:57:28 +04:00
|
|
|
#
|
1995-03-26 01:35:28 +03:00
|
|
|
# from Jan Nicolai Langfeldt <janl@ifi.uio.no>,
|
1993-06-10 04:57:28 +04:00
|
|
|
#
|
|
|
|
|
|
|
|
# Sun/NeXT audio data
|
1995-03-26 01:35:28 +03:00
|
|
|
0 string .snd Sun/NeXT audio data:
|
|
|
|
>12 belong 1 8-bit ISDN u-law,
|
|
|
|
>12 belong 2 8-bit linear PCM [REF-PCM],
|
1993-06-10 04:57:28 +04:00
|
|
|
>12 belong 3 16-bit linear PCM,
|
|
|
|
>12 belong 4 24-bit linear PCM,
|
|
|
|
>12 belong 5 32-bit linear PCM,
|
1995-03-26 01:35:28 +03:00
|
|
|
>12 belong 6 32-bit IEEE floating point,
|
|
|
|
>12 belong 7 64-bit IEEE floating point,
|
|
|
|
>12 belong 23 8-bit ISDN u-law compressed (CCITT G.721 ADPCM voice data encoding),
|
1993-06-10 04:57:28 +04:00
|
|
|
>20 belong 1 mono,
|
|
|
|
>20 belong 2 stereo,
|
|
|
|
>20 belong 4 quad,
|
1995-03-26 01:35:28 +03:00
|
|
|
>16 belong >0 %d Hz
|
|
|
|
|
1993-06-10 04:57:28 +04:00
|
|
|
# DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format
|
|
|
|
# that uses little-endian encoding and has a different magic number
|
|
|
|
0 lelong 0x0064732E DEC audio data:
|
1995-03-26 01:35:28 +03:00
|
|
|
>12 lelong 1 8-bit ISDN u-law,
|
|
|
|
>12 lelong 2 8-bit linear PCM [REF-PCM],
|
1993-06-10 04:57:28 +04:00
|
|
|
>12 lelong 3 16-bit linear PCM,
|
|
|
|
>12 lelong 4 24-bit linear PCM,
|
|
|
|
>12 lelong 5 32-bit linear PCM,
|
1995-03-26 01:35:28 +03:00
|
|
|
>12 lelong 6 32-bit IEEE floating point,
|
|
|
|
>12 lelong 7 64-bit IEEE floating point,
|
|
|
|
>12 lelong 23 8-bit ISDN u-law compressed (CCITT G.721 ADPCM voice data encoding),
|
1993-06-10 04:57:28 +04:00
|
|
|
>20 lelong 1 mono,
|
|
|
|
>20 lelong 2 stereo,
|
|
|
|
>20 lelong 4 quad,
|
1995-03-26 01:35:28 +03:00
|
|
|
>16 lelong >0 %d Hz
|
|
|
|
|
1993-06-10 04:57:28 +04:00
|
|
|
# Bytes 0-3 of AIFF, AIFF-C, & 8SVX audio files are "FORM"
|
|
|
|
8 string AIFF AIFF audio data
|
|
|
|
8 string AIFC AIFF-C audio data
|
|
|
|
8 string 8SVX IFF/8SVX audio data
|
1995-03-26 01:35:28 +03:00
|
|
|
|
|
|
|
# Creative Labs AUDIO stuff
|
|
|
|
0 string MThd Standard MIDI data
|
|
|
|
>9 byte >0 (format %d)
|
|
|
|
>11 byte >1 using %d channels
|
|
|
|
0 string CTMF Creative Music (CMF) data
|
|
|
|
0 string SBI SoundBlaster instrument data
|
|
|
|
0 string Creative\ Voice\ File Creative Labs voice data
|
|
|
|
# is this next line right? it came this way...
|
|
|
|
>19 byte 0x1A
|
|
|
|
>23 byte >0 - version %d
|
|
|
|
>22 byte >0 \b.%d
|
|
|
|
|
|
|
|
# first entry is also the string "NTRK"
|
|
|
|
0 belong 0x4e54524b MultiTrack sound data
|
|
|
|
>4 belong x - version %ld
|
|
|
|
|
|
|
|
# Microsoft WAVE format (*.wav)
|
|
|
|
# [GRR 950115: probably all of the shorts and longs should be leshort/lelong]
|
|
|
|
0 string RIFF Microsoft RIFF
|
|
|
|
>8 string WAVE - WAVE format
|
|
|
|
>34 short >0 %d bit
|
|
|
|
>22 short =1 Mono
|
|
|
|
>22 short =2 Stereo
|
|
|
|
>22 short >2 %d Channels
|
|
|
|
>24 long >0 %d Hz
|