使用说明:
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);
相关源码推荐:
- DragGridView拖拽排序(10659次查看,81次下载)
- bihu逼乎(14270次查看,139次下载)
- Yhb-2.0有惠报(5340次查看,39次下载)
- Android 加载动画(11014次查看,164次下载)
- 简单易用的星级控件(7774次查看,87次下载)