--- WAV audio file detection
-- @module format.wav

local format = require("core.format")

format.register({
	name = "WAV Audio",
	shortname = "WAV",
	default_mode = "preview", -- Offer the optional audio preview before the binary fallback
	extensions = { "wav" },

	-- Pattern breakdown:
	-- '^RIFF' requires the ordinary little-endian WAV container at the file start
	-- '....' skips the stored RIFF size
	-- 'WAVE' confirms that the RIFF payload is audio
	headers = "^RIFF....WAVE",
})
