javax.sound.sampled.Mixer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jtransc-rt Show documentation
Show all versions of jtransc-rt Show documentation
JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.sound.sampled;
public interface Mixer extends Line {
Info getMixerInfo();
Line.Info[] getSourceLineInfo();
Line.Info[] getTargetLineInfo();
Line.Info[] getSourceLineInfo(Line.Info info);
Line.Info[] getTargetLineInfo(Line.Info info);
boolean isLineSupported(Line.Info info);
Line getLine(Line.Info info) throws LineUnavailableException;
int getMaxLines(Line.Info info);
Line[] getSourceLines();
Line[] getTargetLines();
void synchronize(Line[] lines, boolean maintainSync);
void unsynchronize(Line[] lines);
boolean isSynchronizationSupported(Line[] lines, boolean maintainSync);
class Info {
private final String name;
private final String vendor;
private final String description;
private final String version;
protected Info(String name, String vendor, String description, String version) {
this.name = name;
this.vendor = vendor;
this.description = description;
this.version = version;
}
public final boolean equals(Object obj) {
return this == obj;
}
public final int hashCode() {
return name.hashCode();
}
public final String getName() {
return name;
}
public final String getVendor() {
return vendor;
}
public final String getDescription() {
return description;
}
public final String getVersion() {
return version;
}
public final String toString() {
return name + ", version " + version;
}
}
}