|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbb.gui.Sounds
public class Sounds
Provides static utility methods which play various sounds.
This class is multithread safe: it is stateless.
Nested Class Summary | |
---|---|
static class |
Sounds.UnitTest
See the Overview page of the project's javadocs for a general description of this unit test class. |
Field Summary | |
---|---|
private static URL |
urlErrorMajor
|
private static URL |
urlErrorMinor
|
private static URL |
urlNotify
|
Constructor Summary | |
---|---|
private |
Sounds()
This sole private constructor suppresses the default (public) constructor, ensuring non-instantiability outside of this class. |
Method Summary | |
---|---|
static void |
playErrorMajor()
Simply calls . |
static void |
playErrorMajor(boolean synchronous)
Plays a major error sound. |
static void |
playErrorMinor()
Simply calls . |
static void |
playErrorMinor(boolean synchronous)
Plays a minor error sound. |
static void |
playNotify()
Simply calls . |
static void |
playNotify(boolean synchronous)
Plays a notify sound. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final URL urlErrorMajor
private static final URL urlErrorMinor
private static final URL urlNotify
Constructor Detail |
---|
private Sounds()
Method Detail |
---|
public static void playErrorMajor()
playErrorMajor
(true)
.
public static void playErrorMajor(boolean synchronous)
synchronous
- if true, then this method executes synchronously (i.e. does not return until the sound is finished playing)
if false, then this method executes asynchronously (i.e. soon returns, while another thread plays the sound)public static void playErrorMinor()
playErrorMinor
(true)
.
public static void playErrorMinor(boolean synchronous)
synchronous
- if true, then this method executes synchronously (i.e. does not return until the sound is finished playing)
if false, then this method executes asynchronously (i.e. soon returns, while another thread plays the sound)public static void playNotify()
playNotify
(true)
.
public static void playNotify(boolean synchronous)
synchronous
- if true, then this method executes synchronously (i.e. does not return until the sound is finished playing)
if false, then this method executes asynchronously (i.e. soon returns, while another thread plays the sound)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |