1 7 8 package javax.sound.sampled; 9 10 import java.io.InputStream ; 11 import java.io.IOException ; 12 13 39 public interface Clip extends DataLine { 40 41 42 47 public static final int LOOP_CONTINUOUSLY = -1; 48 49 83 public void open(AudioFormat format, byte[] data, int offset, int bufferSize) throws LineUnavailableException ; 84 85 117 public void open(AudioInputStream stream) throws LineUnavailableException , IOException ; 118 119 125 public int getFrameLength(); 126 127 133 public long getMicrosecondLength(); 134 135 146 public void setFramePosition(int frames); 147 148 162 public void setMicrosecondPosition(long microseconds); 163 164 179 public void setLoopPoints(int start, int end); 180 181 205 public void loop(int count); 206 } 207 | Popular Tags |