7588ff418aca63b1dc43a85afc1e86c40dd889a3 |
|
08-Jan-2018 |
Kevin Rocard <krocard@google.com> |
Audio V4: Split HAL wrapper for versioning Both core and effect Hal now have one single point of entry. This point of entry is their respective factories: - DevicesFactoryHalInterface::create - EffectsFactoryHalInterface::create Each entry point looks for their respective services supported version, starting from the highest (currently only 2.0) and returning the subclass wrapping this version to the most recent audio.h framework api. Note that EffectBufferHalInterface were previously created from static methods (mirror and allocate) which broke the single point of entry requirement. As a result, buffers have now to be created from the factory like the other classes. Note that the death handler also need to be its own library as it is used by versioned code and is version independent. Bug: 38184704 Test: compile Change-Id: Iac9b1fda561bb486193d5b9e025a870f50cda530 Signed-off-by: Kevin Rocard <krocard@google.com>
/frameworks/av/media/libaudiohal/EffectsFactoryHalInterface.cpp
|