Get File Size in Samples Without Buffer
Apr 07 2022 | 4:37 pm
I am currently doing this using `new Buffer(bufferName).framecount()`, however the files I'm using are quite large (20-40 minutes long) and they can take a long time to load into a buffer, so I'm curious if there's a way to get the sample length without having to wait for a buffer to load? I'd ideally like to fill out my UI with some file data, and then load the buffer.
I see there is a way to get the location of the end of file in bytes using `new File(path).eof`, is that value something I could use? I don't know much about how to calculate this unfortunately.