OSDN Git Service

Implement the SLAndroidEffectSendItf.
authorJean-Michel Trivi <jmtrivi@google.com>
Fri, 10 Sep 2010 17:47:17 +0000 (10:47 -0700)
committerJean-Michel Trivi <jmtrivi@google.com>
Fri, 10 Sep 2010 18:56:29 +0000 (11:56 -0700)
commit984c4a1d192f83fcd2cf9e333ebe48a32a65b591
tree170cc863bc195529e240393e82a00d1c5a0e893c
parentd6c7ad3c4d3b3882d051239f9e5df78750d57ba2
Implement the SLAndroidEffectSendItf.

This enables sends from an AudioPlayer to an OutputMix
that's using the generic effect interface (SLAndroidEffectItf).
Since there is a single aux bus, the effect ID is only used
to verify the effect referred to in the send is actually
attached to the OutputMix. Also there is a single send
level value and enable flag for the interface, even though
the interface definition supports discerning between multiple
effects (so it scales on platform with multiple aux buses).

Dry (direct) level is now stored in the AudioPlayer,
as it is shared between SLEffectSendItf and
SLAndroidEffectSendItf.

Change-Id: I3dd34c4c045d8ac2961a325e10b181a789bf4913
15 files changed:
opensles/include/SLES/OpenSLES_Android.h
opensles/libopensles/Android.mk
opensles/libopensles/IAndroidEffect.c
opensles/libopensles/IAndroidEffectSend.c [new file with mode: 0644]
opensles/libopensles/IEffectSend.c
opensles/libopensles/MPH.h
opensles/libopensles/MPH_to.c
opensles/libopensles/OpenSLES_IID.c
opensles/libopensles/android_AudioPlayer.cpp
opensles/libopensles/android_Effect.cpp
opensles/libopensles/android_Effect.h
opensles/libopensles/classes.c
opensles/libopensles/interfaces.c
opensles/libopensles/sles.c
opensles/libopensles/sles_allinclusive.h