可视化的音频录制
MalorieSymo
9年前
<h2>介绍:</h2> <p>可视化的音频录制,音频波形自然流畅。</p> <h2>运行效果:</h2> <p><img src="https://simg.open-open.com/show/de38ea4e5b0bdb9d2f46e138a2f5fc79.gif"></p> <h2>使用说明:</h2> <p>1添加依赖</p> <pre> <code class="language-java">compile 'com.yalantis:eqwaves:1.0'</code></pre> <p>初始化Horizon对象</p> <pre> <code class="language-java">mHorizon = new Horizon(glSurfaceView, getResources().getColor(R.color.background), RECORDER_SAMPLE_RATE, RECORDER_CHANNELS, RECORDER_ENCODING_BIT);</code></pre> <p>调用updateView方法来更新Horizon</p> <pre> <code class="language-java">byte[] buffer = new byte[bufferSize]; //here we put some sound data to the buffer mHorizon.updateView(buffer);</code></pre> <p> </p> <p>项目地址: <a href="/misc/goto?guid=4959670490235239058" rel="nofollow">https://github.com/Yalantis/Horizon</a></p>