OSDN Git Service

Fix volume problems with insert revert
authorEric Laurent <elaurent@google.com>
Sat, 11 Sep 2010 00:44:44 +0000 (17:44 -0700)
committerEric Laurent <elaurent@google.com>
Mon, 13 Sep 2010 16:08:28 +0000 (09:08 -0700)
commite0aed6ddcb4e3c301b80aa26706b6052dab42c41
tree4a85e38eefe3ad4ac70ca1b182660aefacc07658
parenta1754133ee6640346b5fd6daa4666f5d2285379a
Fix volume problems with insert revert

- Use a constant input level to the reverb engine and implement volume control in the
insert reverb. This avoids the volume spikes when an effect that was inserted after
the reverb is disabled or removed.
- Fix clicks (one silent buffer) at the end of the reverb disable period.
- Modified volume management in audioflinger so that the volume ramp is also done by
the insert effect if present when the track is paused (avoids clicks).
- Increased room level for all presets.

Also fixed problems with output stage session (-1):
- effect bundle wrapper was not designed to support session -1
- the permission check in audioflinger for using session -1 failed due to a wrong usage of
getCallingPid()

Change-Id: Id1ff51327263364bf71d3f2668fa5cde4311d84f
media/libeffects/lvm/wrapper/Bundle/EffectBundle.cpp
media/libeffects/lvm/wrapper/Bundle/EffectBundle.h
media/libeffects/lvm/wrapper/Reverb/EffectReverb.cpp
services/audioflinger/AudioFlinger.cpp