You should be asking this question in android-framework - this list is for application developers.
However, the short answer is that we are removing this API in the next major release. In fact, the entire audio architecture is going to get a new treatment. We are planning on a replacement for setParameter/getParameter that will support atomic commits. So, if you do decide to use setParameter now, it should not be difficult to merge your changes when the new API is in place. I would prefer that you go this way over modifying the binder interface and all the JNI. In fact, that's precisely why we will continue to provide an API like this so you don' t have to worry about mucking with binder code. On Mar 10, 1:09 pm, SS <shivank.si...@gmail.com> wrote: > Hello, > > We are planning on using setParameter() function in AudioManager.java > for turning on/off some audio effects from the UI. This function goes > all the way to the HAL layer. However, we see a comment in the code > saying the following (pasted at the end of mail). So, my question is > it okay to start using this API with our own defined set of > (key,value) or is there a possibility of this function disappearing > later. If yes, then is there any other recommended function to pass on > UI settings all the way down to the HAL. > > Thanks. > > /* > * Sets a generic audio configuration parameter. The use of these > parameters > * are platform dependant, see libaudio > * > * ** Temporary interface - DO NOT USE > * > * TODO: Replace with a more generic key:value get/set mechanism > * > * param key name of parameter to set. Must not be null. > * param value value of parameter. Must not be null. > */ > /** > * @hide > */ > public void setParameter(String key, String value) { > IAudioService service = getService(); > try { > service.setParameter(key, value); > } catch (RemoteException e) { > Log.e(TAG, "Dead object in setParameter", e); > } > } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---