AIFC
audio/x-aiff
Magic Bytes
Offset: 0
46 4F 52 4D 2E 2E 2E 2E 41 49 46 46
Audio Interchange File Format Compressed (AIFC) is a digital audio container developed by Apple Inc. to incorporate compression capabilities into the original AIFF specification. This format was primarily utilized for archival purposes, legacy multimedia production, and early video game soundtracks requiring reduced storage footprints while maintaining high audio fidelity. As a legacy standard, it is considered safe for general use and maintains compatibility across various professional workstations despite being largely replaced by modern codecs.
Validation Code
How to validate .aifc files in Python
Python
def is_aifc(file_path: str) -> bool:
"""Check if file is a valid AIFC by magic bytes."""
signature = bytes([0x46, 0x4F, 0x52, 0x4D, 0x2E, 0x2E, 0x2E, 0x2E, 0x41, 0x49, 0x46, 0x46])
with open(file_path, "rb") as f:
return f.read(12) == signature
How to validate .aifc files in Node.js
Node.js
function isAIFC(buffer: Buffer): boolean {
const signature = Buffer.from([0x46, 0x4F, 0x52, 0x4D, 0x2E, 0x2E, 0x2E, 0x2E, 0x41, 0x49, 0x46, 0x46]);
return buffer.subarray(0, 12).equals(signature);
}
Go
func IsAIFC(data []byte) bool {
signature := []byte{0x46, 0x4F, 0x52, 0x4D, 0x2E, 0x2E, 0x2E, 0x2E, 0x41, 0x49, 0x46, 0x46}
if len(data) < 12 {
return false
}
return bytes.Equal(data[:12], signature)
}
API Endpoint
GET
/api/v1/aifc
curl https://filesignature.org/api/v1/aifc