| Package | Description |
|---|---|
| com.threerings.media.sound | |
| com.threerings.openal |
| Modifier and Type | Field and Description |
|---|---|
static SoundPlayer.SoundType |
SoundCodes.ALERT
Alert sounds are the type of sounds a player would hear when getting a puzzle challenge.
|
static SoundPlayer.SoundType |
SoundCodes.AMBIENT
Ambient sounds are birds chirping, waves lapping, boats creaking.
|
static SoundPlayer.SoundType |
SoundPlayer.DEFAULT
The default sound type.
|
static SoundPlayer.SoundType |
SoundCodes.FEEDBACK
Feedback sounds are the type of sounds a player would here when clicking on buttons or
performing an action.
|
static SoundPlayer.SoundType |
SoundCodes.GAME_ALERT
Game alert sounds are used to indicate that it's a player's turn.
|
static SoundPlayer.SoundType |
SoundCodes.GAME_FX
General game sound effects.
|
static SoundPlayer.SoundType |
SoundCodes.MUSIC
Songs and the like.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SoundEnabledObserver.enabledChanged(SoundPlayer.SoundType type,
boolean enabled)
Called when the given type is either enabled or disabled.
|
boolean |
SoundPlayer.isEnabled(SoundPlayer.SoundType type)
Is the specified soundtype enabled?
|
SoundPlayer.Frob |
SoundPlayer.loop(SoundPlayer.SoundType type,
String pkgPath,
String key)
Loop the specified sound, stopping as quickly as possible when stop is called.
|
SoundPlayer.Frob |
SoundPlayer.loop(SoundPlayer.SoundType type,
String pkgPath,
String key,
float pan)
Loop the specified sound, stopping as quickly as possible when stop is called.
|
boolean |
SoundPlayer.play(SoundPlayer.SoundType type,
String pkgPath,
String key)
Play the specified sound as the specified type of sound, immediately.
|
boolean |
SoundPlayer.play(SoundPlayer.SoundType type,
String pkgPath,
String key,
float pan)
Play the specified sound as the specified type of sound, immediately, with the specified
pan value.
|
boolean |
SoundPlayer.play(SoundPlayer.SoundType type,
String pkgPath,
String key,
int delay)
Play the specified sound after the specified delay.
|
boolean |
SoundPlayer.play(SoundPlayer.SoundType type,
String pkgPath,
String key,
int delay,
float pan)
Play the specified sound after the specified delay.
|
void |
SoundPlayer.setEnabled(SoundPlayer.SoundType type,
boolean enabled)
Turns on or off the specified sound type.
|
boolean |
SoundPlayer.shouldPlay(SoundPlayer.SoundType type)
Is sound on and is the specified soundtype enabled?
|
| Modifier and Type | Method and Description |
|---|---|
SoundPlayer.Frob |
OpenALSoundPlayer.loop(SoundPlayer.SoundType type,
String pkgPath,
String key,
float gain,
float[] pos) |
boolean |
OpenALSoundPlayer.play(SoundPlayer.SoundType type,
String pkgPath,
String key,
float gain,
float[] pos) |
Copyright © 2015. All rights reserved.