MINIGSF
audio/x-psf
Magic Bytes
Offset: 0
50 53 46
The Mini Game Sound Format (minigsf) is a specialized variant of the Portable Sound Format architecture developed by the emulation community for Game Boy Advance audio. It functions by storing sequence data while referencing external library files for shared instrument samples, allowing for highly efficient storage of game soundtracks. Although considered safe for general use, playback requires specific audio plugins or emulators capable of interpreting the hardware instructions contained within the container.
Validation Code
How to validate .minigsf files in Python
Python
def is_minigsf(file_path: str) -> bool:
"""Check if file is a valid MINIGSF by magic bytes."""
signature = bytes([0x50, 0x53, 0x46])
with open(file_path, "rb") as f:
return f.read(3) == signature
How to validate .minigsf files in Node.js
Node.js
function isMINIGSF(buffer: Buffer): boolean {
const signature = Buffer.from([0x50, 0x53, 0x46]);
return buffer.subarray(0, 3).equals(signature);
}
Go
func IsMINIGSF(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/minigsf
curl https://filesignature.org/api/v1/minigsf