Implement PCM encoders

This commit is contained in:
Vanilagy
2025-01-05 15:58:20 +01:00
parent 37820f1d4c
commit 2625dc7662
8 changed files with 341 additions and 96 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ export class BufferTargetWriter extends Writer {
async finalize() {
this.ensureSize(this.pos);
this.target.buffer = this.bytes.subarray(0, Math.max(this.maxPos, this.pos));
this.target.buffer = this.buffer.slice(0, Math.max(this.maxPos, this.pos));
}
async close() {}