See https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-createBuffer for details.