Yalantis / Horizon

Horizon - Simple visual equaliser for Android
https://play.google.com/store/apps/details?id=com.yalantis.horizon
2.22k stars 310 forks source link

How can we use this with Recorded audio #1

Closed gouravd closed 8 years ago

gouravd commented 8 years ago

I tried my luck with Visualizer and sending the byte[] data from Visualizer.setDataCaptureListener but the vizualization is not syncronized.

I tried both Waveformdata and FFTData

Cool04ek commented 8 years ago

Hi. You don't need Visualiser in this case. You can just send raw data from InputStream. Something like:

InputStream is = new FileInputStream("some_audio.wav"); byte[] buffer = new byte[bufferSize]; is.read(buffer); mHorizon.updateView(buffer);

Take a note, that you need WAV audio in order to get proper analysis.