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

Commit c1918431 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add haptic-generating effect."

parents 23c52011 493e7760
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@
        <library name="downmix" path="libdownmix.so"/>
        <library name="loudness_enhancer" path="libldnhncr.so"/>
        <library name="dynamics_processing" path="libdynproc.so"/>
        <library name="haptic_generator" path="libhapticgenerator.so"/>
    </libraries>

    <!-- list of effects to load.
@@ -58,6 +59,7 @@
        <effect name="downmix" library="downmix" uuid="93f04452-e4fe-41cc-91f9-e475b6d1d69f"/>
        <effect name="loudness_enhancer" library="loudness_enhancer" uuid="fa415329-2034-4bea-b5dc-5b381c8d1e2c"/>
        <effect name="dynamics_processing" library="dynamics_processing" uuid="e0e6539b-1781-7261-676f-6d7573696340"/>
        <effect name="haptic_generator" library="haptic_generator" uuid="97c4acd1-8b82-4f2f-832e-c2fe5d7a9931"/>
    </effects>

    <!-- Audio pre processor configurations.
+49 −0
Original line number Diff line number Diff line
// Copyright (C) 2020 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// HapticGenerator library
cc_library_shared {
    name: "libhapticgenerator",

    vendor: true,

    srcs: [
        "EffectHapticGenerator.cpp",
        "Processors.cpp",
    ],

    cflags: [
        "-O2", // Turning on the optimization in order to reduce effect processing time.
               // The latency is around 1/5 less than without the optimization.
        "-Wall",
        "-Werror",
        "-ffast-math", // This is needed for the non-zero coefficients optimization for
                       // BiquadFilter. Try the biquad_filter_benchmark test in audio_utils
                       // with/without `-ffast-math` for more context.
        "-fvisibility=hidden",
    ],

    shared_libs: [
        "libaudioutils",
        "liblog",
        "libutils",
    ],

    relative_install_path: "soundfx",

    header_libs: [
        "libaudioeffects",
    ],
}
+485 −0

File added.

Preview size limit exceeded, changes collapsed.

+112 −0

File added.

Preview size limit exceeded, changes collapsed.

+0 −0

Empty file added.

Loading