All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javax.sound.sampled.Line Maven / Gradle / Ivy

Go to download

JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.

There is a newer version: 0.6.8
Show newest version
package javax.sound.sampled;

@SuppressWarnings({"unused", "WeakerAccess"})
public interface Line extends AutoCloseable {
	Line.Info getLineInfo();

	void open() throws LineUnavailableException;

	void close();

	boolean isOpen();

	Control[] getControls();

	boolean isControlSupported(Control.Type control);

	Control getControl(Control.Type control);

	void addLineListener(LineListener listener);

	void removeLineListener(LineListener listener);

	class Info {
		private final Class lineClass;

		public Info(Class lineClass) {
			this.lineClass = (lineClass != null) ? lineClass : Line.class;
		}

		public Class getLineClass() {
			return lineClass;
		}

		public boolean matches(Info info) {
			return true;
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy