diff options
author | Andy Hung <hunga@google.com> | 2023-03-09 20:43:35 -0800 |
---|---|---|
committer | Andy Hung <hunga@google.com> | 2023-03-10 15:50:24 -0800 |
commit | 28c0e60414056c26a936ed8ea13753b42c1b9d28 (patch) | |
tree | 55f9eabf5a398051bab56d8a9f42cdc8d5f22493 | |
parent | f2203e6b5f74b3fe67320ef56b2364f092a97999 (diff) | |
download | media-android13-qpr3-c-s6-release.tar.gz |
Spatial Audio: Add SPATIALIZER_PARAM_FOLD_STATEandroid-13.0.0_r82android-13.0.0_r81android-13.0.0_r80android-13.0.0_r74android-13.0.0_r73android-13.0.0_r72android-13.0.0_r66android-13.0.0_r65android-13.0.0_r64android-13.0.0_r60android-13.0.0_r59android-13.0.0_r58android13-qpr3-c-s8-releaseandroid13-qpr3-c-s7-releaseandroid13-qpr3-c-s6-releaseandroid13-qpr3-c-s5-releaseandroid13-qpr3-c-s4-releaseandroid13-qpr3-c-s3-releaseandroid13-qpr3-c-s2-releaseandroid13-qpr3-c-s12-releaseandroid13-qpr3-c-s11-releaseandroid13-qpr3-c-s10-releaseandroid13-qpr3-c-s1-release
Test: adb logcat, verify spatializer effect messages
Bug: 271595745
Change-Id: I59e32980516ce524028bb5792b2d2c7466632b7e
-rw-r--r-- | audio/include/system/audio_effects/effect_spatializer.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/audio/include/system/audio_effects/effect_spatializer.h b/audio/include/system/audio_effects/effect_spatializer.h index 2f853ea7..971d0e3c 100644 --- a/audio/include/system/audio_effects/effect_spatializer.h +++ b/audio/include/system/audio_effects/effect_spatializer.h @@ -47,8 +47,27 @@ typedef enum SPATIALIZER_PARAM_HEAD_TO_STAGE, // foldable device hinge angle as a float value in rad SPATIALIZER_PARAM_HINGE_ANGLE, - // Display orientation as a float value in rad + + // The default display orientation as reported by DisplayManager. + // + // The DisplayManager reports 0, 90, 180, 270 degrees, + // here it is reported as a float value in radians. + // Only 4 values 0, PI/2, PI, 3PI/2 will be sent as of Android 14 (U). + // Due to precision, compare with an epsilon range, suggest + // rounding to the nearest integer degree for practical use. + // + // Notes: + // 1) A device may have more than one display. + // 2) A display may be locked which prevents the application from rotating. SPATIALIZER_PARAM_DISPLAY_ORIENTATION, + + // The fold state as reported by DeviceStateManager for a foldable. + // This is an integer value of either 0 (open) or 1 (folded). + // + // The device fold state may affect which display is active (if any). + // The open/closed logical state differs than the hinge angle, + // which may be reported by a hinge sensor. + SPATIALIZER_PARAM_FOLD_STATE, } t_virtualizer_stage_params; // See SpatializationLevel.aidl |