decode(
data,opts) ->buf,info/err
Decode WAV bytes into a sample buffer
Returns the float32 buffer and an info table { channels, rate, bits, frames }. opts.rate resamples the result to that sample rate (pass
dev:rate() so assets play at the right pitch). Returns nil and an error
string on failure.