APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.media.sound

pack-priv final Class MidiOutDevice

extends AbstractMidiDevice
Class Inheritance
Imports
javax.sound.midi.MidiMessage, .MidiUnavailableException, .Receiver, .ShortMessage

MidiOutDevice class representing functionality of MidiOut devices.
Authors
David Rivas, Kara Kytle, Florian Bomers

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class

Field Summary

Inherited from com.sun.media.sound.AbstractMidiDevice:
id

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected Receiver
public long
protected boolean

Returns:

true, if the device supports Receivers, false otherwise.
hasReceivers
()

Overrides com.sun.media.sound.AbstractMidiDevice.hasReceivers.

Returns if this device supports Receivers.

protected synchronized void
protected synchronized void
private native void
nClose(long id)

private native long
nGetTimeStamp(long id)

private native long
nOpen(int index)

private native void
nSendLongMessage(long id, byte[] data, int size, long timeStamp)

private native void
nSendShortMessage(long id, int packedMsg, long timeStamp)

Inherited from com.sun.media.sound.AbstractMidiDevice:
closecloseInternalcreateTransmitterdoClosefinalizegetDeviceInfogetIdgetMaxReceiversgetMaxTransmittersgetReceivergetReceiverReferenceCountinggetReceiversgetTransmittergetTransmitterListgetTransmitterReferenceCountinggetTransmittershasTransmittersisOpenopen

Constructor Detail

MidiOutDeviceback to summary
pack-priv MidiOutDevice(AbstractMidiDeviceProvider.Info info)

Method Detail

createReceiverback to summary
protected Receiver createReceiver()

Overrides com.sun.media.sound.AbstractMidiDevice.createReceiver.

Doc from com.sun.media.sound.AbstractMidiDevice.createReceiver.

Create a Receiver object. throwing an exception here means that Receivers aren't enabled. Subclasses that use Receivers should override this method with one that returns objects implementing Receiver. Classes overriding this method should also override hasReceivers() to return true.

Annotations
@Override
getMicrosecondPositionback to summary
public long getMicrosecondPosition()

Overrides com.sun.media.sound.AbstractMidiDevice.getMicrosecondPosition.

Implements javax.sound.midi.MidiDevice.getMicrosecondPosition.

Doc from com.sun.media.sound.AbstractMidiDevice.getMicrosecondPosition.

This implementation always returns -1. Devices that actually provide this should over-ride this method.

Annotations
@Override
hasReceiversback to summary
protected boolean hasReceivers()

Overrides com.sun.media.sound.AbstractMidiDevice.hasReceivers.

Returns if this device supports Receivers. This implementation always returns true.

Returns:boolean

true, if the device supports Receivers, false otherwise.

Annotations
@Override
implCloseback to summary
protected synchronized void implClose()

Overrides com.sun.media.sound.AbstractMidiDevice.implClose.

Annotations
@Override
implOpenback to summary
protected synchronized void implOpen() throws MidiUnavailableException

Implements abstract com.sun.media.sound.AbstractMidiDevice.implOpen.

Annotations
@Override
nCloseback to summary
private native void nClose(long id)
nGetTimeStampback to summary
private native long nGetTimeStamp(long id)
nOpenback to summary
private native long nOpen(int index) throws MidiUnavailableException
nSendLongMessageback to summary
private native void nSendLongMessage(long id, byte[] data, int size, long timeStamp)
nSendShortMessageback to summary
private native void nSendShortMessage(long id, int packedMsg, long timeStamp)
com.sun.media.sound back to summary

pack-priv final Class MidiOutDevice.MidiOutReceiver

extends AbstractReceiver
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
implSend(final MidiMessage message, final long timeStamp)

Implements abstract com.sun.media.sound.AbstractMidiDevice.AbstractReceiver.implSend.

pack-priv synchronized void
sendPackedMidiMessage(int packedMsg, long timeStamp)

shortcut for the Sun implementation

Inherited from com.sun.media.sound.AbstractMidiDevice.AbstractReceiver:
closegetMidiDeviceisOpensend

Constructor Detail

MidiOutReceiverback to summary
pack-priv MidiOutReceiver()

Method Detail

implSendback to summary
pack-priv void implSend(final MidiMessage message, final long timeStamp)

Implements abstract com.sun.media.sound.AbstractMidiDevice.AbstractReceiver.implSend.

Annotations
@Override
sendPackedMidiMessageback to summary
pack-priv synchronized void sendPackedMidiMessage(int packedMsg, long timeStamp)

shortcut for the Sun implementation