Freigeben über


JetPlayer.QueueJetSegment(Int32, Int32, Int32, Int32, Int32, SByte) Method

Definition

Queues the specified segment in the JET queue.

[Android.Runtime.Register("queueJetSegment", "(IIIIIB)Z", "GetQueueJetSegment_IIIIIBHandler")]
public virtual bool QueueJetSegment (int segmentNum, int libNum, int repeatCount, int transpose, int muteFlags, sbyte userID);
[<Android.Runtime.Register("queueJetSegment", "(IIIIIB)Z", "GetQueueJetSegment_IIIIIBHandler")>]
abstract member QueueJetSegment : int * int * int * int * int * sbyte -> bool
override this.QueueJetSegment : int * int * int * int * int * sbyte -> bool

Parameters

segmentNum
Int32

the identifier of the segment.

libNum
Int32

the index of the sound bank associated with the segment. Use -1 to indicate that no sound bank (DLS file) is associated with this segment, in which case JET will use the General MIDI library.

repeatCount
Int32

the number of times the segment will be repeated. 0 means the segment will only play once. -1 means the segment will repeat indefinitely.

transpose
Int32

the amount of pitch transposition. Set to 0 for normal playback. Range is -12 to +12.

muteFlags
Int32

a bitmask to specify which MIDI tracks will be muted during playback. Bit 0 affects track 0, bit 1 affects track 1 etc.

userID
SByte

a value specified by the application that uniquely identifies the segment. this value is received in the OnJetEventListener#onJetUserIdUpdate(JetPlayer, int, int) event listener method. Normally, the application will keep a byte value that is incremented each time a new segment is queued up. This can be used to look up any special characteristics of that track including trigger clips and mute flags.

Returns

true if the segment was successfully queued, false if the queue is full or if the parameters are invalid.

Attributes

Remarks

Queues the specified segment in the JET queue.

Java documentation for android.media.JetPlayer.queueJetSegment(int, int, int, int, int, byte).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to