Cleveroad / WaveInApp

Live Audio Equalizer with wave effect
https://www.cleveroad.com
MIT License
1.79k stars 321 forks source link

Need some help #37

Closed redreed closed 5 years ago

redreed commented 7 years ago

hey guys i am new into android development and was trying to implement the wave visualization into my app that will play according to some mp3 that I add to the app

i am really lost please help me

Iojjj commented 7 years ago

Hi.

Start from reading readme, then try to run sample app.

redreed commented 7 years ago

i tried that but i guess i am not able to understand how it works i tried running the example but its just allowing me to change colors nothing else

Iojjj commented 7 years ago

You need to start playing music in your music player app. Then you need to run sample app and choose first option. AudioVisualizer will detect music and start animation. Also you can select other two options without starting music playback. Those options will allow you to visualize your voice with speech detection or audio recording.

redreed commented 7 years ago

thank you so much man ...because u mention the options i noticed there were none coming up for me then i realised i was actually running the wallpaper ap by mistake :P btw is it possible to link a in built music library whiich the visualizer can play from rather than using a thirdparty app

hiteshsahu commented 7 years ago

You can do it simply. It is already demonstrated in the demo app.

See:- https://github.com/Cleveroad/WaveInApp/blob/master/app/src/main/java/com/cleveroad/example/AudioVisualizationFragment.java

Visualizer will automatically link it to default music stream and you can integrate it in your App. You might want to change session ID in line

audioVisualization.linkTo(DbmHandler.Factory.newVisualizerHandler(getContext(), 0));

From document

The audio session ID passed to the constructor indicates which audio content should be visualized:

passing mMediaPlayer.getAudioSessionId() instead of "0" will attche visualizer to your media player.