com.croftsoft.core.media.sound
Class AudioClipCache

java.lang.Object
  extended by com.croftsoft.core.media.sound.AudioClipCache

public final class AudioClipCache
extends Object

Loads, caches, and plays AudioClips with master mute toggle.

Since:
2003-04-01
Version:
2003-04-04
Author:
David Wallace Croft

Constructor Summary
AudioClipCache(ClassLoader classLoader)
           
AudioClipCache(ClassLoader classLoader, String mediaDir)
           
AudioClipCache(ClassLoader classLoader, String mediaDir, Map nameToAudioClipMap)
           
 
Method Summary
 void clear()
           
 boolean isMuted()
           
 void play(String audioClipName)
           
 void setMuted(boolean muted)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AudioClipCache

public AudioClipCache(ClassLoader classLoader,
                      String mediaDir,
                      Map nameToAudioClipMap)

AudioClipCache

public AudioClipCache(ClassLoader classLoader,
                      String mediaDir)

AudioClipCache

public AudioClipCache(ClassLoader classLoader)
Method Detail

isMuted

public boolean isMuted()

clear

public void clear()

setMuted

public void setMuted(boolean muted)

play

public void play(String audioClipName)

stop

public void stop()

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)