MUS
application/octet-stream
Magic Bytes
Offset: 0
46 4F 52 4D 53 4D 55 53
The MUS file format is a proprietary audio container developed by Electronic Arts for storing sequence and sample data in early video games. It was primarily utilized to render dynamic soundtracks and sound effects across titles released on platforms like the Amiga, Commodore 64, and DOS. As a legacy format, it is now largely obsolete, though it remains significant for emulation and historical preservation of retro gaming media.
Validation Code
How to validate .mus files in Python
Python
def is_mus(file_path: str) -> bool:
"""Check if file is a valid MUS by magic bytes."""
signature = bytes([0x46, 0x4F, 0x52, 0x4D, 0x53, 0x4D, 0x55, 0x53])
with open(file_path, "rb") as f:
return f.read(8) == signature
How to validate .mus files in Node.js
Node.js
function isMUS(buffer: Buffer): boolean {
const signature = Buffer.from([0x46, 0x4F, 0x52, 0x4D, 0x53, 0x4D, 0x55, 0x53]);
return buffer.subarray(0, 8).equals(signature);
}
Go
func IsMUS(data []byte) bool {
signature := []byte{0x46, 0x4F, 0x52, 0x4D, 0x53, 0x4D, 0x55, 0x53}
if len(data) < 8 {
return false
}
return bytes.Equal(data[:8], signature)
}
API Endpoint
GET
/api/v1/mus
curl https://filesignature.org/api/v1/mus