Droid-vizu aims to provide customized visualization effects by easily swapping Renderer to get cool effects
Droid-vizu aims to provide customized visualization effects by easily swapping Renderer to get cool effects
Droid-vizu aims to provide cool visualization effects for any Android audio project. Maintainable modular design allows users to easily swap Renderer class to get corresponding effects.
repositories {
jcenter()
}
dependencies {
compile 'info.kimjihyok:droid-vizu:${droid-vizu}'
}
Simply Provide RippleVisualizerViw with an prepared Android MediaPlayer and set with a corresponding renderer
…Detailed information about parameters could be found in the source code!
renderDemoView.setCurrentRenderer(new ColorfulBarRenderer(8, PaintUtil.getBarGraphPaint(Color.BLUE)
, Color.parseColor("#FF0033")
, Color.parseColor("#801AB3")) new BarRenderer(16, PaintUtil.getBarGraphPaint(Color.WHITE)); new LineRenderer(PaintUtil.getLinePaint(Color.YELLOW));// It is required to stop at onStop and to destory at onDestory to prevent memory leak and unexpected events
@Override
protected void onStop() {
super.onStop();
soundPlayerView.onStop();
renderDemoView.stop();
}
@Override
protected void onDestroy() {
super.onDestroy();
soundPlayerView.onDestroy();
renderDemoView.destroy();
}No open issues yet, or sync has not completed.