OSDN Git Service

Virtualizer effect: add parameter to query virtualization mode
authorJean-Michel Trivi <jmtrivi@google.com>
Tue, 15 Jul 2014 00:19:22 +0000 (17:19 -0700)
committerJean-Michel Trivi <jmtrivi@google.com>
Tue, 15 Jul 2014 00:19:22 +0000 (17:19 -0700)
Change-Id: Ie3be4b20e9c7f1a1427b5ae21e6f6ea07c8e2886

audio_effects/include/audio_effects/effect_virtualizer.h

index e429c5e..3374a35 100644 (file)
@@ -60,7 +60,15 @@ typedef enum
     //   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
+    VIRTUALIZER_PARAM_FORCE_VIRTUALIZATION_MODE,
+    // used with EFFECT_CMD_GET_PARAM
+    // format:
+    //   parameters int32_t              VIRTUALIZER_PARAM_VIRTUALIZATION_MODE
+    //   output     audio_device_t       audio device reflecting the current virtualization mode,
+    //                                   AUDIO_DEVICE_NONE when not virtualizing
+    //   status     int -EINVAL if an error occurred
+    //                  0       if the output value is successfully retrieved
+    VIRTUALIZER_PARAM_VIRTUALIZATION_MODE
 } t_virtualizer_params;
 
 #if __cplusplus