mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 19:03:46 +02:00
Fix tests some more
This commit is contained in:
@@ -51,13 +51,15 @@ test('AAC encoding', async () => {
|
||||
output.addAudioTrack(audioSource);
|
||||
|
||||
await output.start();
|
||||
await audioSource.add(new AudioSample({
|
||||
const sample = new AudioSample({
|
||||
data,
|
||||
format: 'f32',
|
||||
numberOfChannels: channels,
|
||||
sampleRate,
|
||||
timestamp: 0,
|
||||
}));
|
||||
});
|
||||
await audioSource.add(sample);
|
||||
sample.close();
|
||||
audioSource.close();
|
||||
await output.finalize();
|
||||
|
||||
@@ -100,13 +102,15 @@ test('AAC with huge timestamps', async () => {
|
||||
output.addAudioTrack(audioSource);
|
||||
|
||||
await output.start();
|
||||
await audioSource.add(new AudioSample({
|
||||
const sample = new AudioSample({
|
||||
data,
|
||||
format: 'f32',
|
||||
numberOfChannels: channels,
|
||||
sampleRate,
|
||||
timestamp,
|
||||
}));
|
||||
});
|
||||
await audioSource.add(sample);
|
||||
sample.close();
|
||||
audioSource.close();
|
||||
await output.finalize();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user