pgbennett.jampal
Class AudioCommon

java.lang.Object
  extended by pgbennett.jampal.AudioCommon

public class AudioCommon
extends java.lang.Object

Common methods for audio examples.


Constructor Summary
AudioCommon()
           
 
Method Summary
static javax.sound.sampled.AudioFileFormat.Type findTargetType(java.lang.String strExtension)
          Trying to get an audio file type for the passed extension.
static javax.sound.sampled.Mixer.Info getMixerInfo(java.lang.String strMixerName)
          TODO: This method tries to return a Mixer.Info whose name matches the passed name.
static javax.sound.sampled.TargetDataLine getTargetDataLine(java.lang.String strMixerName, javax.sound.sampled.AudioFormat audioFormat, int nBufferSize)
          TODO:
static void listMixers()
          TODO:
static void listSupportedTargetTypes()
          TODO:
static void setDebug(boolean bDebug)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AudioCommon

public AudioCommon()
Method Detail

setDebug

public static void setDebug(boolean bDebug)

listSupportedTargetTypes

public static void listSupportedTargetTypes()
TODO:


findTargetType

public static javax.sound.sampled.AudioFileFormat.Type findTargetType(java.lang.String strExtension)
Trying to get an audio file type for the passed extension. This works by examining all available file types. For each type, if the extension this type promisses to handle matches the extension we are trying to find a type for, this type is returned. If no appropriate type is found, null is returned.


listMixers

public static void listMixers()
TODO:


getMixerInfo

public static javax.sound.sampled.Mixer.Info getMixerInfo(java.lang.String strMixerName)
TODO: This method tries to return a Mixer.Info whose name matches the passed name. If no matching Mixer.Info is found, null is returned.


getTargetDataLine

public static javax.sound.sampled.TargetDataLine getTargetDataLine(java.lang.String strMixerName,
                                                                   javax.sound.sampled.AudioFormat audioFormat,
                                                                   int nBufferSize)
TODO: