codeblockutil
Class SoundManager

java.lang.Object
  extended by codeblockutil.SoundManager

public class SoundManager
extends java.lang.Object

Manages the sounds for StarLogoBlocks


Field Summary
static boolean DEBUG
           
 
Constructor Summary
SoundManager()
           
 
Method Summary
static boolean isSoundEnabled()
          Returns true iff sounds are being allowed to play.
static Sound loadSound(java.lang.String soundFileName)
           
static void setSoundEnabled(boolean enableSound)
          Sets the ability to enable sound within the entire codeblocks library If enableSound is set to false, no sounds can be played/heard until enableSound is set to true again.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static boolean DEBUG
Constructor Detail

SoundManager

public SoundManager()
Method Detail

loadSound

public static Sound loadSound(java.lang.String soundFileName)

setSoundEnabled

public static void setSoundEnabled(boolean enableSound)
Sets the ability to enable sound within the entire codeblocks library If enableSound is set to false, no sounds can be played/heard until enableSound is set to true again.

Parameters:
enableSound -

isSoundEnabled

public static boolean isSoundEnabled()
Returns true iff sounds are being allowed to play.

Returns:
true iff sounds are being allowed to play.