jjdh API

dh.javax.sound
Class StandardSoundFacade

java.lang.Object
  extended by dh.javax.sound.SoundFacade
      extended by dh.javax.sound.StandardSoundFacade

public class StandardSoundFacade
extends SoundFacade


Field Summary
protected static StandardSoundFacade instance
           
 
Fields inherited from class dh.javax.sound.SoundFacade
dummyAudioProxy, map, strategyChooser, threadPool
 
Constructor Summary
private StandardSoundFacade()
           
 
Method Summary
protected static InputStream asInputStream(File file)
           
static StandardSoundFacade getInstance()
           
 AudioProxy play(File soundFile)
           
 AudioProxy play(ResourceReference ref)
          Will try to play the given ResourceReference.
 AudioProxy play(String regex)
          Will try to play the ResourceReference defined by the given regex.
 AudioProxy stream(File soundFile)
           
 AudioProxy stream(ResourceReference ref)
           
 AudioProxy stream(String regex)
           
 
Methods inherited from class dh.javax.sound.SoundFacade
asAudioInputStream, getLine, getMaxSimultaneousSounds, getStrategy, play, playAudioStream, playAudioStream, playByName, shutdown, stream, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

instance

protected static StandardSoundFacade instance
Constructor Detail

StandardSoundFacade

private StandardSoundFacade()
Method Detail

getInstance

public static StandardSoundFacade getInstance()

stream

public AudioProxy stream(ResourceReference ref)

stream

public AudioProxy stream(String regex)

play

public AudioProxy play(String regex)
Will try to play the ResourceReference defined by the given regex.


play

public AudioProxy play(ResourceReference ref)
Will try to play the given ResourceReference.


stream

public AudioProxy stream(File soundFile)

play

public AudioProxy play(File soundFile)

asInputStream

protected static InputStream asInputStream(File file)

jjdh API

Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.