0

Doing a little search i realized that to make an equalizer. I need to use C or C++ That would also mean that i have to use the NDK to integrate that with my Java code. The question is, how can i make the C and Java code interact with each other. I don't even know C but i really want that equalizer in my music player. Do you guys know of any good C book which is the best for beginners?

Thanks.

madcoderz
  • 4,423
  • 10
  • 47
  • 74

3 Answers3

7

There should be no need to use the NDK. There already is an Equalizer-Class in Android, which is also used by the standard Android Music Player. Also, here is an answer on how to make the Sliders

Community
  • 1
  • 1
Lukas Knuth
  • 25,449
  • 15
  • 83
  • 111
  • 1
    is this equalizer class available from 2.2 or only from 2.3.3? – madcoderz May 16 '11 at 20:20
  • It's API Level 9, so it's available since Android 2.3 – Lukas Knuth May 16 '11 at 20:32
  • 1
    that's a shame, i want my equalizer to be available from 2.2 How can i achieve that? Using C? – madcoderz May 17 '11 at 09:53
  • @LukasKnuth can you please help me.. i dont want equalizer but i just want to show graphics of equalizer like bars moving up and down or heart beat like animation..can you help me ? – Swap-IOS-Android Jan 15 '13 at 09:28
  • @SwapAndroid I'd say the [`Visualizer`-class](http://developer.android.com/reference/android/media/audiofx/Visualizer.html) looks like something you want. – Lukas Knuth Jan 15 '13 at 11:53
  • @LukasKnuth thank you so much .. i got idea now.. but do you know how can i display in bars ..i found code look like heartbeats but do you know anything for bar.. – Swap-IOS-Android Jan 15 '13 at 11:55
  • @SwapAndroid depends on the kinds of effects you want. If it's simple, create some Bitmaps and draw them on a [`SurfaceView`](http://developer.android.com/reference/android/view/SurfaceView.html). If you need something more fancy, have a look at [OpenGL ES](http://developer.android.com/guide/topics/graphics/opengl.html) – Lukas Knuth Jan 15 '13 at 12:01
0

Here is a link to a list of great books. Do a search through there and see what people suggest.

SO list of books

Community
  • 1
  • 1
prolink007
  • 33,872
  • 24
  • 117
  • 185
0

you'll also need to get familiar with the NDK for making the java portion of your app utilize c or c++ methods.

FoamyGuy
  • 46,603
  • 18
  • 125
  • 156