|
GF4J 0.9.4 Beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gameframe.engines.NullSoundEngine
Do nothing implementation of the sound engine, used e.g. when no soundcard is found on the current platform.
gameframe.SoundEngine
Field Summary | |
private java.lang.String |
m_strDataDirectory
The currently set datadirectory. |
static NullSoundEngine |
mStatic_singletonInstance
The singleton instance of Null Sample Engine class. |
Constructor Summary | |
private |
NullSoundEngine()
Private constructor of this class. |
Method Summary | |
void |
finalize()
Clears the singleton instance. |
java.lang.String |
getDataDirectory()
Returns the data directory wherefrom the sounds are loaded. |
java.lang.String |
getDescription()
Returns the (possibly multiline) description of the implementation. |
static NullSoundEngine |
getInstance()
Returns the single instance of Null Sample Engine class. |
java.lang.String |
getName()
Returns the short name (max 8 characters) of the implementation "NullSnd". |
Music |
loadMusic(java.lang.String fileName)
Returns an do nothing implementation of music object. |
Sample |
loadSample(java.lang.String fileName)
Returns an do nothing implementation of sample object. |
void |
setDataDirectory(java.lang.String strDirectoryName)
Checks if the directory exists (like the other library implementations do). |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.lang.String m_strDataDirectory
public static NullSoundEngine mStatic_singletonInstance
Constructor Detail |
private NullSoundEngine()
Method Detail |
public static NullSoundEngine getInstance()
public Sample loadSample(java.lang.String fileName)
loadSample
in interface SoundEngine
fileName
- Ignored.public Music loadMusic(java.lang.String fileName)
loadMusic
in interface SoundEngine
fileName
- Ignored.public void setDataDirectory(java.lang.String strDirectoryName) throws java.io.FileNotFoundException
setDataDirectory
in interface SoundEngine
strDirectoryName
- Ignored.public java.lang.String getDataDirectory()
getDataDirectory
in interface SoundEngine
loadSample(java.lang.String)
,
loadMusic(java.lang.String)
public java.lang.String getName()
getName
in interface SoundEngine
public java.lang.String getDescription()
getDescription
in interface SoundEngine
public void finalize()
finalize
in interface Finalizable
finalize
in class java.lang.Object
|
GF4J 0.9.4 Beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |