Closed marksyzm closed 1 year ago
Maybe use toBitDepth(16), then output using toBuffer?
But according to the code, toBuffer only outputs 8-bit?
Being able to set the buffer size would be ideal, especially to 8, 16, 24, or 32-bit.
Yeah toBuffer maybe not; try getSamples(false, Int16Array); ?
Aha! That sounds like it
Yes, how did I miss that?? Thank you!
Also, thank you so much for such amazing work on this. There was barely anything else out there that did all this and you saved me having to work out something from scratch for all this. Brilliant job, thank you!
I'm just working on something that generates peaks for wave files which I read the data from via base64, and to match what I have I'd prefer the buffer to output in 16 bit, possibly signed format?
Is there a way to do this with what
This would be my ideal:
Or can I just convert this to 16 bit?
Many thanks