diff options
author | Jean-Michel Trivi <jmtrivi@google.com> | 2012-04-19 09:08:11 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-04-19 09:08:11 -0700 |
commit | e5a2a9dd71e24925d2d069eba7954105a8944920 (patch) | |
tree | b30feb3de3d08b3ef4f4bbd75afee450d7f5e78c | |
parent | 623ff65afea34612498dcf33887ffaf8b194c281 (diff) | |
parent | 9408133c75f0dc0acf5906567f19f27a91b98273 (diff) | |
download | android_system_media-e5a2a9dd71e24925d2d069eba7954105a8944920.tar.gz android_system_media-e5a2a9dd71e24925d2d069eba7954105a8944920.tar.bz2 android_system_media-e5a2a9dd71e24925d2d069eba7954105a8944920.zip |
Merge "Add new scaling mode parameter in Visualizer effect"
-rw-r--r-- | audio_effects/include/audio_effects/effect_visualizer.h | 7 |
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 */ |