{"success":true,"data":{"ext":"gslib","name":"GSLIB","description":"GSLIB is a legacy audio library file format in the PlayStation Sound Format family, originally created for PlayStation-related sound data and maintained by the PSF community. It is used to store game music and audio resources for emulators, media players, and archival collections of console audio. The format is generally safe to open, although older files may require specialized software and have limited support in modern applications.","mime":["audio/x-psf"],"risk_level":"Safe","signatures":[{"hex":"50 53 46","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":["minigsf","minipsf","minipsf1","psf1","psflib"],"usage":{"python":"def is_gslib(file_path: str) -> bool:\n    \"\"\"Check if file is a valid GSLIB by magic bytes.\"\"\"\n    signature = bytes([0x50, 0x53, 0x46])\n    with open(file_path, \"rb\") as f:\n        return f.read(3) == signature","node":"function isGSLIB(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x50, 0x53, 0x46]);\n  return buffer.subarray(0, 3).equals(signature);\n}","go":"func IsGSLIB(data []byte) bool {\n    signature := []byte{0x50, 0x53, 0x46}\n    if len(data) < 3 {\n        return false\n    }\n    return bytes.Equal(data[:3], signature)\n}"},"category":"Audio"}}