rochars / wavefile

Create, read and write wav files according to the specs. :star: :notes: :heart:
MIT License
226 stars 48 forks source link

Do less things: remove base64 stuff #40

Open jimmywarting opened 1 year ago

jimmywarting commented 1 year ago

You got a couple of ways to load wav files...

and also exporting them:


Base64 isn't a good container cuz it takes up way more space, a Uint8Array is way better.

encourage base64 today isn't so good. it's better to just have one way to solve it so that less code can be shipped and bundled.

also don't know how i feel about the name toBuffer and fromBuffer the name mostly implies that it is dealing with NodeJS buffers. how about to/fromUint8array ?