Hi,
I'm trying to add an additional Audio Effect to 2.3.3 AOSP.

The native C part of the code seems fairly straightforward. I can link 
against the effect's static library, set up the i/o buffers etc. No JNI 
layer to write as the effects API provides a standard Java->C mapping and 
the ability to pass custom commands through this. The problem is in the Java 
layer. It would seem that in the AudioEffects API there is only scope for 
instantiating one of the OpenSL-ES compliant subclasses. The type UUID of 
your effect would have to be that of one of the OpenSL-ES effects, and its 
api would need to map to one of the audioeffects subclasses for that effect.

However... In the Java source (AudioEffect.java) there is a constructor for 
AudioEffect itself that lets one specify an arbitrary effect type and uuid 
value:

 public AudioEffect(UUID type, UUID uuid, int priority, int audioSession)
            throws IllegalArgumentException, UnsupportedOperationException,
            RuntimeException {}

Great, for testing as we can manually insert the UUIDs I created for the 
non-opensl effect.

However in the SDK (i've checked 8, 10, 11) there is no reference to this 
constructor at all. Is this intentional, or an oversight?


Assuming this was purposefully left out, is there any way I can call this 
function (that does appear to be there, if not in the SDK) using references 
to the source, say, rather than the SDK? I'm currently rebuilding the SDK 
from source in the hope that the constructor is then visible (as there 
doesn't seem to be anything in the source to tag it to be left out), and so 
as to add a subclass to the SDK to give an improved API specifically for 
this effect, but does anyone else have experience/knowledge with why that 
constructor is missing?

Cheers,

Rob

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to