Add explicit disposability to Inputs (#126)

This commit is contained in:
Vanilagy
2025-09-21 20:18:59 +02:00
parent 34c01fbb10
commit 608c769a7e
22 changed files with 479 additions and 116 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ import { BufferTarget } from '../../src/target.js';
import { Conversion } from '../../src/conversion.js';
test('can decode samples from a FLAC file', async () => {
const input = new Input({
using input = new Input({
source: new UrlSource('/sample.flac'),
formats: [FLAC],
});
@@ -25,7 +25,7 @@ test('can decode samples from a FLAC file', async () => {
});
test('can convert a .flac to .wav', async () => {
const input = new Input({
using input = new Input({
source: new UrlSource('/sample.flac'),
formats: [FLAC],
});