Managed to get some audio out of the tape recorder. it's making sound but it does not sound good .. yet.
I got it recording and downloading lossless audio! 🎉 so it’s:
- creating an AudioContext at 48kHz
- adding a worklet that chunks up 32 bit stereo audio samples to post them to the main thread
- receiving those chunks and writing them into standard sized IndexedDB samples
- (async) iterating through all those samples and creating a WAV blob for the browser to download
I’m very much regretting my goal of “no libraries”, but I’ve learned quite a lot in doing so! The next step is to work out how to play the audio in-browser with variable playback speeds (for fast forward/rewind)