We are streaming pcm from the browser to node and saving it using FileWriter. The wav plays, but its header is wrong. Its always the default since we do not know the dataLength at the beginning.
The FileWriter.prototype._onHeader is called at the end, but does not fix anything.
Actually, It seems the child functions (onOpen, onClose, onWrite) within the method are never called so it basically does nothing.
Did you forget
fs.open(this.path, 'r+', onOpen)
at the end?
We are streaming pcm from the browser to node and saving it using FileWriter. The wav plays, but its header is wrong. Its always the default since we do not know the dataLength at the beginning.
The FileWriter.prototype._onHeader is called at the end, but does not fix anything.
Actually, It seems the child functions (onOpen, onClose, onWrite) within the method are never called so it basically does nothing.
Did you forget
at the end?