summaryrefslogtreecommitdiffstats
path: root/include/media/IAudioRecord.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2012-03-29 15:51:43 -0700
committerEric Laurent <elaurent@google.com>2012-03-29 19:50:49 -0700
commita011e35b22f95f558d81dc9c94b68b1465c4661d (patch)
tree3f8c46c8c7e30f36c3b629174a26bc4ca2a860b2 /include/media/IAudioRecord.h
parentb4c0c4b800332fe55c60aa328ece8d849cee3a4d (diff)
downloadframeworks_av-a011e35b22f95f558d81dc9c94b68b1465c4661d.zip
frameworks_av-a011e35b22f95f558d81dc9c94b68b1465c4661d.tar.gz
frameworks_av-a011e35b22f95f558d81dc9c94b68b1465c4661d.tar.bz2
implemented synchronous audio capture
Added the infrastructure to support the synchronization of playback and capture actions on specific events. The first requirement for this feature is to synchronize the audio capture start with the full rendering of a given audio content. The applications can further be extended to other use cases (synchronized playback start...) by adding new synchronization events and new synchronous control methods on player or recorders. Also added a method to query the audio session from a ToneGenerator. Change-Id: I51f1167290d9cafdf2fbcdf9e4785156973af44c
Diffstat (limited to 'include/media/IAudioRecord.h')
-rw-r--r--include/media/IAudioRecord.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/media/IAudioRecord.h b/include/media/IAudioRecord.h
index 089be3b..c486c6b 100644
--- a/include/media/IAudioRecord.h
+++ b/include/media/IAudioRecord.h
@@ -25,7 +25,6 @@
#include <binder/IInterface.h>
#include <binder/IMemory.h>
-
namespace android {
// ----------------------------------------------------------------------------
@@ -39,7 +38,7 @@ public:
* make it active. If set, the callback will start being called.
* tid identifies the client callback thread, or 0 if not needed.
*/
- virtual status_t start(pid_t tid) = 0;
+ virtual status_t start(pid_t tid, int event, int triggerSession) = 0;
/* Stop a track. If set, the callback will cease being called and
* obtainBuffer will return an error. Buffers that are already released