summaryrefslogtreecommitdiff
path: root/media/libeffects/EffectVisualizer.cpp
diff options
context:
space:
mode:
author Eric Laurent <elaurent@google.com> 2010-07-09 13:34:17 -0700
committer Eric Laurent <elaurent@google.com> 2010-07-13 12:27:18 -0700
commit7d850f23c857fe0c0deec9b9ea593d3029665a16 (patch)
treec5b885b890b6707a42a0f54cb4f2e3d4b7e6eacd /media/libeffects/EffectVisualizer.cpp
parente339464f1c8efe7e53b761cf44ff5be6e537ecad (diff)
Modifications in audio effect engine state management.
- Separate the updating of effect engine state from the process call in EffectModule so that the state of all effects in the same effect chain is updated simultaneusly before all process functions are called. - Added a mechanism for the effect engine to continue being called for processing after receiving the disable commands untils it considers that the framework can stop calling the process function without causing a glitch or loosing some effect tail. - Updated test reverb and equalizer to support this new feature Change-Id: Icb56ae2c84c076d4dbad6cf733b1a62f823febe7
Diffstat (limited to 'media/libeffects/EffectVisualizer.cpp')
-rw-r--r--media/libeffects/EffectVisualizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libeffects/EffectVisualizer.cpp b/media/libeffects/EffectVisualizer.cpp
index f27e296cb8c4..bcda06e8ae57 100644
--- a/media/libeffects/EffectVisualizer.cpp
+++ b/media/libeffects/EffectVisualizer.cpp
@@ -231,7 +231,7 @@ extern "C" int Visualizer_process(
return -EINVAL;
}
if (pContext->mState != VISUALIZER_STATE_ACTIVE) {
- return -ENOSYS;
+ return -ENODATA;
}
if (inBuffer == NULL || inBuffer->raw == NULL ||