Horizon
介绍:
可视化的音频录制,音频波形自然流畅。
运行效果:
使用说明:
1添加依赖
compile 'com.yalantis:eqwaves:1.0'
初始化Horizon对象
mHorizon = new Horizon(glSurfaceView, getResources().getColor(R.color.background),
RECORDER_SAMPLE_RATE, RECORDER_CHANNELS, RECORDER_ENCODING_BIT);
调用updateView方法来更新Horizon
byte\[\] buffer = new byte\[bufferSize\];
//here we put some sound data to the buffer
mHorizon.updateView(buffer);
已下载
0