sound
Class PortUtils
java.lang.Object
sound.PortUtils
public class PortUtils
- extends java.lang.Object
Copyright 2005, DocJava, Inc.
User: dlyon
Date: Nov 6, 2006
Time: 2:12:25 PM
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortUtils
public PortUtils()
getMicrophonePort
public static javax.sound.sampled.Port getMicrophonePort()
getCompactDiscPort
public static javax.sound.sampled.Port getCompactDiscPort()
getHeadPhonePort
public static javax.sound.sampled.Port getHeadPhonePort()
getLineInPort
public static javax.sound.sampled.Port getLineInPort()
getLineOutPort
public static javax.sound.sampled.Port getLineOutPort()
getSpeakerPort
public static javax.sound.sampled.Port getSpeakerPort()
getPort
public static javax.sound.sampled.Port getPort(javax.sound.sampled.Port.Info pi)
printFormatsOfMicrophone
public static void printFormatsOfMicrophone()
getAudioFormats
public static javax.sound.sampled.AudioFormat[] getAudioFormats(javax.sound.sampled.Port p)
printMicrophoneInfo
public static void printMicrophoneInfo()
main
public static void main(java.lang.String[] args)
throws javax.sound.sampled.LineUnavailableException
- Throws:
javax.sound.sampled.LineUnavailableException