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

Commit 70b38d97 authored by Eric Laurent's avatar Eric Laurent Committed by Automerger Merge Worker
Browse files

Merge "Spatializer: update getSupportedHeadTrackingModes()" into tm-dev am: b5085dfe

parents 2cb661fb b5085dfe
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -57,8 +57,10 @@ interface ISpatializer {
    boolean isHeadTrackingSupported();

    /** Reports the list of supported head tracking modes (see SpatializerHeadTrackingMode.aidl).
     * The list can be empty if the spatializer implementation does not support head tracking or if
     * no head tracking sensor is registered (see setHeadSensor() and setScreenSensor()).
     * The list always contains SpatializerHeadTrackingMode.DISABLED and can include other modes
     * if the spatializer effect implementation supports head tracking.
     * The result does not depend on currently connected sensors but reflects the capabilities
     * when sensors are available.
     */
    SpatializerHeadTrackingMode[] getSupportedHeadTrackingModes();

+1 −6
Original line number Diff line number Diff line
@@ -342,12 +342,7 @@ Status Spatializer::getSupportedHeadTrackingModes(

    modes->push_back(SpatializerHeadTrackingMode::DISABLED);
    if (mSupportsHeadTracking) {
        if (mHeadSensor != SpatializerPoseController::INVALID_SENSOR) {
        modes->push_back(SpatializerHeadTrackingMode::RELATIVE_WORLD);
            if (mScreenSensor != SpatializerPoseController::INVALID_SENSOR) {
                modes->push_back(SpatializerHeadTrackingMode::RELATIVE_SCREEN);
            }
        }
    }
    return Status::ok();
}