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
Congrats on keeping
wavefilealive.Looks like
.fromScratch()forces thesignedflag of the file automatically from bit depth and format?prx-wavefile/lib/wavefile-creator.js
Lines 691 to 702 in b904b07
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