audio: add missing spatializer effect parameter
Add parameter key to set current head to stage pose in
spatializer effect.
Bug: 188502620
Test: make
Change-Id: I3760ba9a4c083d1ef80359514e384f6907fb7544
diff --git a/audio/include/system/audio_effects/effect_spatializer.h b/audio/include/system/audio_effects/effect_spatializer.h
index 2c8aed1..039347b 100644
--- a/audio/include/system/audio_effects/effect_spatializer.h
+++ b/audio/include/system/audio_effects/effect_spatializer.h
@@ -30,12 +30,36 @@
typedef enum
{
- SPATIALIZER_PARAM_TYPE,
- SPATIALIZER_PARAM_LEVEL,
- SPATIALIZER_PARAM_SUPPORTED_HEADTRACKING_MODE,
- SPATIALIZER_PARAM_HEADTRACKING_MODE
+ SPATIALIZER_PARAM_SUPPORTED_LEVELS, // See SpatializationLevel.aidl
+ SPATIALIZER_PARAM_LEVEL, // See SpatializationLevel.aidl
+ SPATIALIZER_PARAM_HEADTRACKING_SUPPORTED,
+ SPATIALIZER_PARAM_HEADTRACKING_MODE, // See SpatializerHeadTrackingMode.aidl
+ // list of supported input channel masks:
+ // first unit32_t is the number of channel masks followed by the corresponding
+ // number of audio_channel_mask_t.
+ SPATIALIZER_PARAM_SUPPORTED_CHANNEL_MASKS,
+ // list of supported spatialization modes:
+ // first unit32_t is the number of modes followed by the corresponding
+ // number of spatialization_mode_t.
+ SPATIALIZER_PARAM_SUPPORTED_SPATIALIZATION_MODES,
+ // Vector of 6 floats representing the head to stage pose:
+ // first three are a translation vector and the last three are a rotation vector.
+ SPATIALIZER_PARAM_HEAD_TO_STAGE,
+ SPATIALIZER_PARAM_HINGE_ANGLE,
} t_virtualizer_stage_params;
+// See SpatializationLevel.aidl
+typedef enum {
+ SPATIALIZATION_LEVEL_NONE = 0,
+ SPATIALIZATION_LEVEL_MULTICHANNEL = 1,
+ SPATIALIZATION_LEVEL_MCHAN_BED_PLUS_OBJECTS = 2,
+} spatializer_level_t;
+
+typedef enum {
+ SPATIALIZATION_MODE_BINAURAL = 0,
+ SPATIALIZATION_MODE_TRANSAURAL = 1,
+} spatialization_mode_t;
+
#if __cplusplus
} // extern "C"
#endif