Skip to content

signed/unsigned support? #10

Description

@gmarinov

Congrats on keeping wavefile alive.

Looks like.fromScratch() forces the signed flag of the file automatically from bit depth and format?

updateDataType_() {
this.dataType = {
bits: ((parseInt(this.bitDepth, 10) - 1) | 7) + 1,
fp: this.bitDepth == "32f" || this.bitDepth == "64",
signed: this.bitDepth != "8",
be: this.container == "RIFX"
};
if (["4", "8a", "8m"].indexOf(this.bitDepth) > -1) {
this.dataType.bits = 8;
this.dataType.signed = false;
}
}

Do you plan to support signed 8-bit and unsigned 16-bit audio?
Would be useful to write in the docs that it forces the format if not.

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions