summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2010-07-13 12:33:47 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-07-13 12:33:47 -0700
commit405278954f3a328026e3037c6d9b4ba8d200da45 (patch)
treef940336ff307a9b9e479099f7550843c9c510561 /include
parent09d7d7dbc3dbb1d10f2cc18dba7d33e40a098aed (diff)
parent66fa2b44cadf8694cc1b7e2aae1f8abaff4fc547 (diff)
downloadframeworks_base-405278954f3a328026e3037c6d9b4ba8d200da45.zip
frameworks_base-405278954f3a328026e3037c6d9b4ba8d200da45.tar.gz
frameworks_base-405278954f3a328026e3037c6d9b4ba8d200da45.tar.bz2
am 66fa2b44: am 8e886be4: Merge "Modifications in audio effect engine state management." into gingerbread
Merge commit '66fa2b44cadf8694cc1b7e2aae1f8abaff4fc547' * commit '66fa2b44cadf8694cc1b7e2aae1f8abaff4fc547': Modifications in audio effect engine state management.
Diffstat (limited to 'include')
-rw-r--r--include/media/EffectApi.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/media/EffectApi.h b/include/media/EffectApi.h
index b4d738c..9f3d0b6 100644
--- a/include/media/EffectApi.h
+++ b/include/media/EffectApi.h
@@ -223,6 +223,11 @@ typedef struct audio_buffer_s audio_buffer_t;
// samples as specified in output buffer descriptor. If the buffer descriptor
// is not specified the function must use either the buffer or the
// buffer provider function installed by the EFFECT_CMD_CONFIGURE command.
+// The effect framework will call the process() function after the EFFECT_CMD_ENABLE
+// command is received and until the EFFECT_CMD_DISABLE is received. When the engine
+// receives the EFFECT_CMD_DISABLE command it should turn off the effect gracefully
+// and when done indicate that it is OK to stop calling the process() function by
+// returning the -ENODATA status.
//
// NOTE: the process() function implementation should be "real-time safe" that is
// it should not perform blocking calls: malloc/free, sleep, read/write/open/close,
@@ -239,6 +244,8 @@ typedef struct audio_buffer_s audio_buffer_t;
//
// Output:
// returned value: 0 successful operation
+// -ENODATA the engine has finished the disable phase and the framework
+// can stop calling process()
// -EINVAL invalid interface handle or
// invalid input/output buffer description
////////////////////////////////////////////////////////////////////////////////