summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2014-07-09 09:14:46 -0700
committerJean-Michel Trivi <jmtrivi@google.com>2014-07-13 15:13:51 -0700
commit4f57d02bf3de631f88de1318f0e7e5258c50e0e2 (patch)
tree683b576135c36cb29b14833c0a0b00361f9e1a40
parent261bba65ee32c608b0f8ca4e8a1dd950cbf7caa0 (diff)
downloadandroid_system_media-4f57d02bf3de631f88de1318f0e7e5258c50e0e2.tar.gz
android_system_media-4f57d02bf3de631f88de1318f0e7e5258c50e0e2.tar.bz2
android_system_media-4f57d02bf3de631f88de1318f0e7e5258c50e0e2.zip
Audio virtualizer effect: define new parameters for capability query
Change-Id: I8882e528047a74b425cfa10a1b10c4fef0286bc0
-rw-r--r--audio_effects/include/audio_effects/effect_virtualizer.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/audio_effects/include/audio_effects/effect_virtualizer.h b/audio_effects/include/audio_effects/effect_virtualizer.h
index fdb68a93..76313907 100644
--- a/audio_effects/include/audio_effects/effect_virtualizer.h
+++ b/audio_effects/include/audio_effects/effect_virtualizer.h
@@ -30,10 +30,31 @@ const effect_uuid_t * const SL_IID_VIRTUALIZER = &SL_IID_VIRTUALIZER_;
#endif //OPENSL_ES_H_
/* enumerated parameter settings for virtualizer effect */
+/* to keep in sync with frameworks/base/media/java/android/media/audiofx/Virtualizer.java */
typedef enum
{
VIRTUALIZER_PARAM_STRENGTH_SUPPORTED,
- VIRTUALIZER_PARAM_STRENGTH
+ VIRTUALIZER_PARAM_STRENGTH,
+ // used with EFFECT_CMD_GET_PARAM
+ // format:
+ // parameters int32_t VIRTUALIZER_PARAM_VIRTUAL_SPEAKER_ANGLES
+ // audio_channel_mask_t input channel mask
+ // audio_devices_t audio output device
+ // output int32_t* an array of length 2 * the number of channels in the mask
+ // where entries are the succession of the channel mask
+ // of each speaker (i.e. a single bit is selected in the
+ // channel mask) followed by the angle value in degrees
+ // status int -EINVAL if configuration is not supported or invalid or not forcing
+ // 0 if configuration is supported and the mode is forced
+ VIRTUALIZER_PARAM_VIRTUAL_SPEAKER_ANGLES,
+ // used with EFFECT_CMD_SET_PARAM
+ // format:
+ // parameters int32_t VIRTUALIZER_PARAM_FORCE_VIRTUALIZATION_MODE
+ // audio_devices_t audio output device
+ // status int -EINVAL if the device is not supported or invalid
+ // 0 if the device is supported and the mode is forced, or forcing
+ // was disabled for the AUDIO_DEVICE_NONE audio device.
+ VIRTUALIZER_PARAM_FORCE_VIRTUALIZATION_MODE
} t_virtualizer_params;
#if __cplusplus