import { createDecoder } from './dist/minimp3-wasm.js'; const mp3Data = /* Some Uint8Array */; const decoder = await createDecoder(mp3Data, './dist/decoder.opt.wasm'); decoder.seek(/*position_in_secounds=*/30); const results = decoder.decode(/*duration_in_seconds=*/10); // => { pcm: Int16Array(...), ... }
The decoder wasm and its bindings will be generated under dist/
directory.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4