Language

MidiInputPort.OnSend(Byte[], Int32, Int32, Int64) Method

Definition

Sends MIDI data to the input port.

[Android.Runtime.Register("onSend", "([BIIJ)V", "", ApiSince=23)]
public override void OnSend(byte[]? msg, int offset, int count, long timestamp);
[<Android.Runtime.Register("onSend", "([BIIJ)V", "", ApiSince=23)>]
override this.OnSend : byte[] * int * int * int64 -> unit

Parameters

msg
Byte[]

a byte array containing the MIDI data

offset
Int32

the offset of the first byte of the data in the array to be processed

count
Int32

the number of bytes of MIDI data in the array to be processed

timestamp
Int64

the timestamp of the message (based on System.nanoTime())

Attributes

Remarks

Writes the specified MIDI data to the input port. The method checks the offset and count, fails if the count exceeds the maximum message size, and fails if the port is closed.

Android reference for android.media.midi.MidiInputPort.onSend.

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