javax.sound
Georgi
drgeorgiev at mail.ru
Thu Feb 23 07:04:24 PST 2006
here is the code for test :
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Line;
import javax.sound.sampled.LineUnavailableException;
import javax.sound.sampled.SourceDataLine;
import javax.sound.sampled.TargetDataLine;
public class TestDataLine {
public static void main(String[] args) throws LineUnavailableException {
SourceDataLine sdl = (SourceDataLine) AudioSystem.getLine(new
Line.Info(SourceDataLine.class));
System.out.println(sdl.getLineInfo());
TargetDataLine tdl = (TargetDataLine) AudioSystem.getLine(new
Line.Info(TargetDataLine.class));
System.out.println(tdl.getLineInfo());
}
}
More information about the freebsd-java
mailing list