Opens the clip, meaning that it should acquire any required system resources and become operational. The clip is opened with the format and audio data indicated. If this operation succeeds, the line is marked as open and an
{@link LineEvent.Type#OPEN OPEN}
event is dispatched to the line's listeners.
Invoking this method on a line which is already open is illegal and may result in an IllegalStateException.
Note that some lines, once closed, cannot be reopened. Attempts to reopen such a line will always result in a {@link LineUnavailableException}
.
@param format the format of the supplied audio data
@param data a byte array containing audio data to load into the clip
@param offset the point at which to start copying, expressed inbytes from the beginning of the array
@param bufferSize the number of bytesof data to load into the clip from the array.
@throws LineUnavailableException if the line cannot beopened due to resource restrictions
@throws IllegalArgumentException if the buffer size does not representan integral number of sample frames, or if format
is not fully specified or invalid
@throws IllegalStateException if the line is already open
@throws SecurityException if the line cannot beopened due to security restrictions
@see #close
@see #isOpen
@see LineListener