Here's my first attempt at a library that's suitable to share. It's for the Equalizer available in API 9 and later (Gingerbread 2.3).
If it's used on a device which does not have API 9 or later, it will not fail at initialization and you can check the IsInitialized method to see if it's available and use it if it is.
It is my first attempt, let me know if you get any problems with it and I'll try to sort them out.
Steve
I've added an example program which works fine on the emulator, my Cyanogen mod powered devices are not so happy. Probably to do with the Cyanogen mod release, I'll try to update them.
V1.01 ensures reinitialization is done after app is paused.
V1.10 allows attaching to a specific Mediaplayer or AudioTrack using the audioSessionID. You can get this using reflection on Mediaplayer. See Post:#15
If it's used on a device which does not have API 9 or later, it will not fail at initialization and you can check the IsInitialized method to see if it's available and use it if it is.
It is my first attempt, let me know if you get any problems with it and I'll try to sort them out.
Steve
I've added an example program which works fine on the emulator, my Cyanogen mod powered devices are not so happy. Probably to do with the Cyanogen mod release, I'll try to update them.
V1.01 ensures reinitialization is done after app is paused.
V1.10 allows attaching to a specific Mediaplayer or AudioTrack using the audioSessionID. You can get this using reflection on Mediaplayer. See Post:#15
Attachments
Last edited: