summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-04-02 11:19:11 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-04-02 11:19:11 -0700
commitdca856f5cb849b8feab2d24f3248f25d887211ee (patch)
tree7310d419fe1dd1805cfe4d07aaeeae17de938d4e /include
parent49a692c3a659aee0a065304d1f845ee1290687ca (diff)
parent4a4a0959bca78e03e3c3f486ba17829c28314d8c (diff)
downloadframeworks_av-dca856f5cb849b8feab2d24f3248f25d887211ee.zip
frameworks_av-dca856f5cb849b8feab2d24f3248f25d887211ee.tar.gz
frameworks_av-dca856f5cb849b8feab2d24f3248f25d887211ee.tar.bz2
Merge "AudioTrack client fast policy"
Diffstat (limited to 'include')
-rw-r--r--include/media/AudioTrack.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/media/AudioTrack.h b/include/media/AudioTrack.h
index 7d5d772..6de6486 100644
--- a/include/media/AudioTrack.h
+++ b/include/media/AudioTrack.h
@@ -139,13 +139,15 @@ public:
* latency of the track. The actual size selected by the AudioTrack could be
* larger if the requested size is not compatible with current audio HAL
* latency.
- * flags: Reserved for future use.
+ * flags: See comments on audio_policy_output_flags_t in <system/audio_policy.h>.
* cbf: Callback function. If not null, this function is called periodically
* to request new PCM data.
* user: Context for use by the callback receiver.
* notificationFrames: The callback function is called each time notificationFrames PCM
* frames have been consumed from track input buffer.
* sessionId: Specific session ID, or zero to use default.
+ * threadCanCallJava: Whether callbacks are made from an attached thread and thus can call JNI.
+ * If not present in parameter list, then fixed at false.
*/
AudioTrack( audio_stream_type_t streamType,
@@ -157,7 +159,7 @@ public:
callback_t cbf = NULL,
void* user = NULL,
int notificationFrames = 0,
- int sessionId = 0);
+ int sessionId = 0);
// DEPRECATED
explicit AudioTrack( int streamType,
@@ -189,7 +191,7 @@ public:
callback_t cbf = NULL,
void* user = NULL,
int notificationFrames = 0,
- int sessionId = 0);
+ int sessionId = 0);
/* Terminates the AudioTrack and unregisters it from AudioFlinger.
* Also destroys all resources associated with the AudioTrack.