sound
Class PortUtils

java.lang.Object
  extended by sound.PortUtils

public class PortUtils
extends java.lang.Object

Copyright 2005, DocJava, Inc. User: dlyon Date: Nov 6, 2006 Time: 2:12:25 PM


Constructor Summary
PortUtils()
           
 
Method Summary
static javax.sound.sampled.AudioFormat[] getAudioFormats(javax.sound.sampled.Port p)
           
static javax.sound.sampled.Port getCompactDiscPort()
           
static javax.sound.sampled.Port getHeadPhonePort()
           
static javax.sound.sampled.Port getLineInPort()
           
static javax.sound.sampled.Port getLineOutPort()
           
static javax.sound.sampled.Port getMicrophonePort()
           
static javax.sound.sampled.Port getPort(javax.sound.sampled.Port.Info pi)
           
static javax.sound.sampled.Port getSpeakerPort()
           
static void main(java.lang.String[] args)
           
static void printFormatsOfMicrophone()
           
static void printMicrophoneInfo()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortUtils

public PortUtils()
Method Detail

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