summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2012-04-15 17:20:23 -0700
committerJean-Michel Trivi <jmtrivi@google.com>2012-04-17 14:30:41 -0700
commit9408133c75f0dc0acf5906567f19f27a91b98273 (patch)
treed93cc61da8a2c98d2979935e7edfdd486d3f7852
parentfe0be1ba229e2150cd959a75a79935db9bc7b782 (diff)
downloadandroid_system_media-9408133c75f0dc0acf5906567f19f27a91b98273.tar.gz
android_system_media-9408133c75f0dc0acf5906567f19f27a91b98273.tar.bz2
android_system_media-9408133c75f0dc0acf5906567f19f27a91b98273.zip
Add new scaling mode parameter in Visualizer effect
Change-Id: I5c47f5a81891022ff409161aff34d7b2c4b0a2ea
-rw-r--r--audio_effects/include/audio_effects/effect_visualizer.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/audio_effects/include/audio_effects/effect_visualizer.h b/audio_effects/include/audio_effects/effect_visualizer.h
index 96a63b3f..45bac5ac 100644
--- a/audio_effects/include/audio_effects/effect_visualizer.h
+++ b/audio_effects/include/audio_effects/effect_visualizer.h
@@ -32,10 +32,15 @@ const effect_uuid_t * const SL_IID_VISUALIZATION = &SL_IID_VISUALIZATION_;
#define VISUALIZER_CAPTURE_SIZE_MAX 1024 // maximum capture size in samples
#define VISUALIZER_CAPTURE_SIZE_MIN 128 // minimum capture size in samples
+// to keep in sync with frameworks/base/media/java/android/media/audiofx/Visualizer.java
+#define VISUALIZER_SCALING_MODE_NORMALIZED 0
+#define VISUALIZER_SCALING_MODE_AS_PLAYED 1
+
/* enumerated parameters for Visualizer effect */
typedef enum
{
- VISUALIZER_PARAM_CAPTURE_SIZE, // Sets the number PCM samples in the capture.
+ VISUALIZER_PARAM_CAPTURE_SIZE, // Sets the number PCM samples in the capture.
+ VISUALIZER_PARAM_SCALING_MODE, // Sets the way the captured data is scaled
} t_visualizer_params;
/* commands */