mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Effect AIDL: add Spatializer default implementation to Cuttlefish" into main am: ac270bcbe2
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2959644 Change-Id: Idfc6d94b03fd276eef06eae790f45918ea30048e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -38,6 +38,7 @@ apex {
|
|||||||
"libpreprocessingaidl",
|
"libpreprocessingaidl",
|
||||||
"libpresetreverbsw",
|
"libpresetreverbsw",
|
||||||
"libreverbaidl",
|
"libreverbaidl",
|
||||||
|
"libspatializersw",
|
||||||
"libvirtualizersw",
|
"libvirtualizersw",
|
||||||
"libvisualizeraidl",
|
"libvisualizeraidl",
|
||||||
"libvolumesw",
|
"libvolumesw",
|
||||||
|
|||||||
@@ -35,6 +35,6 @@ cc_library_shared {
|
|||||||
],
|
],
|
||||||
relative_install_path: "soundfx",
|
relative_install_path: "soundfx",
|
||||||
visibility: [
|
visibility: [
|
||||||
"//hardware/interfaces/audio/aidl/default",
|
"//hardware/interfaces/audio/aidl/default:__subpackages__",
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -108,6 +108,8 @@ ndk::ScopedAStatus SpatializerSw::setParameterSpecific(const Parameter::Specific
|
|||||||
|
|
||||||
ndk::ScopedAStatus SpatializerSw::getParameterSpecific(const Parameter::Id& id,
|
ndk::ScopedAStatus SpatializerSw::getParameterSpecific(const Parameter::Id& id,
|
||||||
Parameter::Specific* specific) {
|
Parameter::Specific* specific) {
|
||||||
|
RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext");
|
||||||
|
|
||||||
auto tag = id.getTag();
|
auto tag = id.getTag();
|
||||||
RETURN_IF(Parameter::Id::spatializerTag != tag, EX_ILLEGAL_ARGUMENT, "wrongIdTag");
|
RETURN_IF(Parameter::Id::spatializerTag != tag, EX_ILLEGAL_ARGUMENT, "wrongIdTag");
|
||||||
auto spatializerId = id.get<Parameter::Id::spatializerTag>();
|
auto spatializerId = id.get<Parameter::Id::spatializerTag>();
|
||||||
|
|||||||
Reference in New Issue
Block a user