scottstensland/websockets-streaming-audio

bring versions up to date and get this working again

scottstensland opened this issue · 1 comments

its time this projects gets back in the saddle

set the controls for the heart of the sun

OK so two changes fixed this

(1) --------------------------------------

bad
new Buffer()

good
new Buffer.alloc() and its siblings like Buffer.from()

(2) --------------------------------------
other change was related to a browser breaking change which went in back in 2017 to disable autoPlay which impacted Web Audio API so I just needed to spank the new audio context once prior to its initial use

Now its working ... work still needed to properly handle reaching end of input file ... next body of work is to have and upstream server side process feed this nodejs server a series of fresh input wav files to which it will just continue streaming ... similar to HLS ... this will be an optional mode not a replacement for simply streaming a single input file as its doing today