javax.sound.sampled
public interface Clip extends DataLine
Since: 1.3
Field Summary | |
---|---|
int | LOOP_CONTINUOUSLY
This can be passed to {@link #loop(int)} to indicate that looping
should be done continuously. |
Method Summary | |
---|---|
int | getFrameLength()
Return the frame length of this clip. |
long | getMicrosecondLength()
Return the length of the clip in microseconds. |
void | loop(int count)
Start looping the clip. |
void | open(AudioFormat fmt, byte[] data, int offset, int len)
Open a clip, given an audio format and some data. |
void | open(AudioInputStream ais)
Open a clip, given an audio input stream. |
void | setFramePosition(int where)
Set the position to the indicated frame. |
void | setLoopPoints(int begin, int end)
Set the loop begin and end points. |
void | setMicrosecondPosition(long ms)
Set the position to the indicated microsecond. |
Parameters: count the number of times to loop
Parameters: fmt the format of the data data a byte array containing the audio data offset the offset of the first byte of data in the array len the length of the audio data in the array, in bytes
Throws: LineUnavailableException if the line cannot be opened SecurityException if the line cannot be opened for security reasons
Parameters: ais the input stream
Throws: LineUnavailableException if the line cannot be opened SecurityException if the line cannot be opened for security reasons IOException if there is an I/O error while reading the stream
Parameters: where new frame position
Parameters: begin the starting point end the ending point
Parameters: ms the new position in microseconds