1 7 8 package javax.sound.sampled; 9 10 11 40 public interface Mixer extends Line { 41 42 48 public Info getMixerInfo(); 49 50 51 59 public Line.Info [] getSourceLineInfo(); 60 61 69 public Line.Info [] getTargetLineInfo(); 70 71 72 82 public Line.Info [] getSourceLineInfo(Line.Info info); 83 84 85 95 public Line.Info [] getTargetLineInfo(Line.Info info); 96 97 98 106 public boolean isLineSupported(Line.Info info); 107 108 126 public Line getLine(Line.Info info) throws LineUnavailableException ; 127 128 149 public int getMaxLines(Line.Info info); 150 151 152 161 public Line [] getSourceLines(); 162 163 172 public Line [] getTargetLines(); 173 174 191 public void synchronize(Line [] lines, boolean maintainSync); 192 193 206 public void unsynchronize(Line [] lines); 207 208 209 221 public boolean isSynchronizationSupported(Line [] lines, boolean maintainSync); 222 223 224 235 public static class Info { 236 237 240 private String name; 241 242 245 private String vendor; 246 247 250 private String description; 251 252 255 private String version; 256 257 266 protected Info(String name, String vendor, String description, String version) { 267 268 this.name = name; 269 this.vendor = vendor; 270 this.description = description; 271 this.version = version; 272 } 273 274 275 283 public final boolean equals(Object obj) { 284 return super.equals(obj); 285 } 286 287 292 public final int hashCode() { 293 return super.hashCode(); 294 } 295 296 300 public final String getName() { 301 return name; 302 } 303 304 308 public final String getVendor() { 309 return vendor; 310 } 311 312 316 public final String getDescription() { 317 return description; 318 } 319 320 324 public final String getVersion() { 325 return version; 326 } 327 328 332 public final String toString() { 333 return (name + ", version " + version); 334 } 335 } } 337 | Popular Tags |