PSFLIB

audio/x-psf

Safe

Magic Bytes

Offset: 0
50 53 46

PSFLIB is a specialized audio library format created by Neill Corlett as an extension of the PlayStation Sound Format. It functions as a repository for shared samples and sequence data used by multiple PSF files, reducing redundancy in video game music archives. As a legacy format primarily used for emulation, it carries a low risk level because it contains only structured data for sound chips rather than executable code.

Extension

.psflib

MIME Type

audio/x-psf

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .psflib files in Python

Python
def is_psflib(file_path: str) -> bool:
    """Check if file is a valid PSFLIB by magic bytes."""
    signature = bytes([0x50, 0x53, 0x46])
    with open(file_path, "rb") as f:
        return f.read(3) == signature

How to validate .psflib files in Node.js

Node.js
function isPSFLIB(buffer: Buffer): boolean {
  const signature = Buffer.from([0x50, 0x53, 0x46]);
  return buffer.subarray(0, 3).equals(signature);
}
Go
func IsPSFLIB(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/psflib
curl https://filesignature.org/api/v1/psflib

Related Formats