{"success":true,"data":{"ext":"wma","name":"Microsoft Windows Media Audio/Video File","description":"Microsoft Windows Media Audio/Video (WMA) is a media file format developed by Microsoft as part of the Windows Media platform and based on the Advanced Systems Format container. It is used for storing compressed audio and, in some cases, audio-video content for playback in Windows Media Player and compatible media applications. The format is largely legacy, though it remains safe to open in trusted players and may appear in older media collections.","mime":["audio/x-ms-wma"],"risk_level":"Safe","signatures":[{"hex":"30 26 B2 75 8E 66 CF 11","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"A6 D9 00 AA 00 62 CE 6C","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"30 26 B2 75 8E 66 CF 11 A6 D9 00 AA 00 62 CE 6C","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["ra","aac","ac3","aif","aifc","aiff"],"usage":{"python":"def is_wma(file_path: str) -> bool:\n    \"\"\"Check if file is a valid WMA by magic bytes.\"\"\"\n    signature = bytes([0x30, 0x26, 0xB2, 0x75, 0x8E, 0x66, 0xCF, 0x11])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isWMA(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x30, 0x26, 0xB2, 0x75, 0x8E, 0x66, 0xCF, 0x11]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsWMA(data []byte) bool {\n    signature := []byte{0x30, 0x26, 0xB2, 0x75, 0x8E, 0x66, 0xCF, 0x11}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"},"category":"Audio"}}