Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac270bcb authored by Shunkai Yao's avatar Shunkai Yao Committed by Gerrit Code Review
Browse files

Merge "Effect AIDL: add Spatializer default implementation to Cuttlefish" into main

parents 7f9c47a3 c7f5c2dd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ apex {
        "libpreprocessingaidl",
        "libpresetreverbsw",
        "libreverbaidl",
        "libspatializersw",
        "libvirtualizersw",
        "libvisualizeraidl",
        "libvolumesw",
+1 −1
Original line number Diff line number Diff line
@@ -35,6 +35,6 @@ cc_library_shared {
    ],
    relative_install_path: "soundfx",
    visibility: [
        "//hardware/interfaces/audio/aidl/default",
        "//hardware/interfaces/audio/aidl/default:__subpackages__",
    ],
}
+2 −0
Original line number Diff line number Diff line
@@ -108,6 +108,8 @@ ndk::ScopedAStatus SpatializerSw::setParameterSpecific(const Parameter::Specific

ndk::ScopedAStatus SpatializerSw::getParameterSpecific(const Parameter::Id& id,
                                                       Parameter::Specific* specific) {
    RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext");

    auto tag = id.getTag();
    RETURN_IF(Parameter::Id::spatializerTag != tag, EX_ILLEGAL_ARGUMENT, "wrongIdTag");
    auto spatializerId = id.get<Parameter::Id::spatializerTag>();