Make FLAC encoder bit depth depend on input sample format, add sampleFormat audio transformation option, fix incorrect bitrate validation for FLAC (closes #357)

This commit is contained in:
Vanilagy
2026-04-29 16:27:20 +02:00
parent 2d49122277
commit f3dec587fd
15 changed files with 384 additions and 143 deletions
+2 -2
View File
@@ -47,7 +47,7 @@ test('FLAC encoding', async () => {
target: new BufferTarget(),
});
const audioSource = new AudioSampleSource({ codec: 'flac', bitrate: 1 });
const audioSource = new AudioSampleSource({ codec: 'flac' });
output.addAudioTrack(audioSource);
await output.start();
@@ -97,7 +97,7 @@ test('FLAC with huge timestamps', async () => {
target: new BufferTarget(),
});
const audioSource = new AudioSampleSource({ codec: 'flac', bitrate: 1 });
const audioSource = new AudioSampleSource({ codec: 'flac' });
output.addAudioTrack(audioSource);
await output.start();