com.partnersoft.sound
Class SoundEventManager

java.lang.Object
  extended by com.partnersoft.sound.SoundEventManager

public class SoundEventManager
extends java.lang.Object

Takes care of events that fire sounds.

Sounds work much like module events. In a module, you create a directory structure like: sounds/MODULE/EVENTTYPE/EVENTNAME.wav. For example, sounds for "add" events are stored in sounds/MODULE_OR_MAPSET/add/TOOL.wav. More specifically, if you want a sound for the "Bad Dog" tool in Drawing, you would put it in sounds/Drawing/add/Bad Dog.wav.

You can create these in any module, not just the one providing the event triggers. This allows you to choose from multiple "sound pack" modules for a single application module.

Generally you don't need your own manager - use the one provided by SystemServices.soundEventManager().

Copyright 2009 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Constructor Summary
SoundEventManager()
           
 
Method Summary
 void playSoundFor(Path eventPath)
           
 void playSoundFor(java.lang.String eventPathString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoundEventManager

public SoundEventManager()
Method Detail

playSoundFor

public void playSoundFor(Path eventPath)

playSoundFor

public void playSoundFor(java.lang.String eventPathString)