// audio.js manifest — codec atom, encode half: opts → callable encoder // (enc(chunk) → bytes, enc() → flush+free), adapting the package's // { encode, flush, free } streaming shape. Hosts merge with the decode half // (@audio/decode-wav) by format name. import init from './wav-encode.js' export const wav = { codec: 'wav', encode: async (opts) => { const c = await init(opts) return (chunk) => { if (chunk) return c.encode(chunk) const out = c.flush() c.free?.() return out } }, }