Skip to content

FileWriter duration (and dataLength) are wrong. Always uses default "dataLength" #10

Description

@danikenan

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions