PSF1
audio/x-psf
Magic Bytes
Offset: 0
50 53 46
The PlayStation Sound Format (PSF1) is a specialized audio subformat originally developed by Neill Corlett to store music sequences extracted from Sony PlayStation games. It is primarily utilized by emulation software and media players to reproduce authentic game audio using the original instrument samples and sequencing data. This legacy format encapsulates driver code and sequence data within a compressed container, though it remains widely regarded as safe for modern playback environments.
Validation Code
How to validate .psf1 files in Python
Python
def is_psf1(file_path: str) -> bool:
"""Check if file is a valid PSF1 by magic bytes."""
signature = bytes([0x50, 0x53, 0x46])
with open(file_path, "rb") as f:
return f.read(3) == signature
How to validate .psf1 files in Node.js
Node.js
function isPSF1(buffer: Buffer): boolean {
const signature = Buffer.from([0x50, 0x53, 0x46]);
return buffer.subarray(0, 3).equals(signature);
}
Go
func IsPSF1(data []byte) bool {
signature := []byte{0x50, 0x53, 0x46}
if len(data) < 3 {
return false
}
return bytes.Equal(data[:3], signature)
}
API Endpoint
GET
/api/v1/psf1
curl https://filesignature.org/api/v1/psf1