mirror of
https://github.com/darksaid98/mediaplex.git
synced 2026-12-03 06:28:50 +00:00
0.0.0
This commit is contained in:
1 parent
8d6839244a
commit
dd706e7f23
14 files changed
+766
-8
No files matched your search
Binary file not shown.
+12
-3
@@ -1,7 +1,16 @@
|
||||
import test from 'ava'
|
||||
import { probe } from '../index.js'
|
||||
import { readFile } from 'fs/promises';
|
||||
|
||||
import { sum } from '../index.js'
|
||||
test('should probe mp3 buffer', async (t) => {
|
||||
const chunk = await readFile('./__test__/data/head.mp3');
|
||||
|
||||
test('sum from native', (t) => {
|
||||
t.is(sum(1, 2), 3)
|
||||
t.deepEqual(probe(chunk), {
|
||||
channels: 2,
|
||||
sampleRate: 44100,
|
||||
framesPerBlock: 0,
|
||||
codec: 4099,
|
||||
nFrames: 796032,
|
||||
duration: 18
|
||||
});
|
||||
})
|
||||
Reference in new issue
Block a user