/**@class android.media.MediaSyncEvent
@extends java.lang.Object

 The MediaSyncEvent class defines events that can be used to synchronize playback or capture
 actions between different players and recorders.
 <p>For instance, {@link android.media.AudioRecord#startRecording(MediaSyncEvent)} is used to start capture
 only when the playback on a particular audio session is complete.
 The audio session ID is retrieved from a player (e.g {@link android.media.MediaPlayer}, {@link android.media.AudioTrack} or
 {@link android.media.ToneGenerator}) by use of the getAudioSessionId() method.
*/
var MediaSyncEvent = {

/** No sync event specified. When used with a synchronized playback or capture method, the
 behavior is equivalent to calling the corresponding non synchronized method.
*/
SYNC_EVENT_NONE : "0",
/** The corresponding action is triggered only when the presentation is completed
 (meaning the media has been presented to the user) on the specified session.
 A synchronization of this type requires a source audio session ID to be set via
 {@link #setAudioSessionId}(int) method.
*/
SYNC_EVENT_PRESENTATION_COMPLETE : "1",
/**Creates a synchronization event of the sepcified type.

 <p>The type specifies which kind of event is monitored.
 For instance, event {@link #SYNC_EVENT_PRESENTATION_COMPLETE} corresponds to the audio being
 presented to the user on a particular audio session.
@param {Number} eventType the synchronization event type.
@return {Object {android.media.MediaSyncEvent}} the MediaSyncEvent created.
@throws java.lang.IllegalArgumentException
*/
createEvent : function(  ) {},

/**Sets the event source audio session ID.

 <p>The audio session ID specifies on which audio session the synchronization event should be
 monitored.
 It is mandatory for certain event types (e.g. {@link #SYNC_EVENT_PRESENTATION_COMPLETE}).
 For instance, the audio session ID can be retrieved via
 {@link android.media.MediaPlayer#getAudioSessionId()} when monitoring an event on a particular MediaPlayer.
@param {Number} audioSessionId the audio session ID of the event source being monitored.
@return {Object {android.media.MediaSyncEvent}} the MediaSyncEvent the method is called on.
@throws java.lang.IllegalArgumentException
*/
setAudioSessionId : function(  ) {},

/**Gets the synchronization event type.
@return {Number} the synchronization event type.
*/
getType : function(  ) {},

/**Gets the synchronization event audio session ID.
@return {Number} the synchronization audio session ID. The returned audio session ID is 0 if it has
 not been set.
*/
getAudioSessionId : function(  ) {},


};