public class SoundEventManager
extends java.lang.Object
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.
| Constructor and Description |
|---|
SoundEventManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
playSoundFor(Path eventPath) |
void |
playSoundFor(java.lang.String eventPathString) |
public void playSoundFor(Path eventPath)
public void playSoundFor(java.lang.String eventPathString)