PCM realizes double speed playback through sonic Library. play by AudioContext.
download test-pcm-web
open url: https://this-spring.github.io/sonic-pcm-player/index.html
click 选择文件->获取buffer->start
default rate: 1
-
git clone https://github.com/waywardgeek/sonic.git
-
make clean & make & make install
-
sh webassembly.sh(make sure install emsdk)
c: sonic/wrapper_sonic.c
wasm: webassembly/sonic.wasm
胶水js: webassembly/sonic.js
player.js: ./player.js
index.html: ./index.html
TODO