Package paulscode.sound
Class SoundSystem
java.lang.Object
paulscode.sound.SoundSystem
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Listprotected CommandThreadprivate static Classprivate static final booleanprivate static booleanprivate static SoundSystemExceptionprotected SoundSystemLoggerprivate static final booleanprotected Libraryprivate Listprivate static final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbackgroundMusic(String string, String string2, boolean bool) voidbackgroundMusic(String string, URL uRL, String string2, boolean bool) voidvoidcleanup()private voidCommandActivate(String string) private voidprivate voidCommandCull(String string) private voidCommandDequeueSound(String string, String string2) private voidCommandFadeOut(String string, FilenameURL filenameURL, long long2) private voidCommandFadeOutIn(String string, FilenameURL filenameURL, long long2, long long3) private voidCommandFeedRawAudioData(String string, byte[] byte2) private voidCommandFlush(String string) private voidprivate voidCommandLoadSound(FilenameURL filenameURL) private voidCommandMoveListener(float float2, float float3, float float4) private voidCommandNewLibrary(Class class2) private voidCommandNewSource(boolean bool, boolean bool2, boolean bool3, String string, FilenameURL filenameURL, float float2, float float3, float float4, int int2, float float5) private voidCommandPause(String string) private voidCommandPlay(String string) booleanCommandQueue(CommandObject commandObject) private voidCommandQueueSound(String string, FilenameURL filenameURL) private voidCommandQuickPlay(boolean bool, boolean bool2, boolean bool3, String string, FilenameURL filenameURL, float float2, float float3, float float4, int int2, float float5, boolean bool4) private voidCommandRawDataStream(AudioFormat audioFormat, boolean bool, String string, float float2, float float3, float float4, int int2, float float5) private voidCommandRemoveSource(String string) private voidCommandRewind(String string) private voidCommandSetAttenuation(String string, int int2) private voidCommandSetDistOrRoll(String string, float float2) private voidCommandSetListenerAngle(float float2) private voidCommandSetListenerOrientation(float float2, float float3, float float4, float float5, float float6, float float7) private voidCommandSetListenerPosition(float float2, float float3, float float4) private voidCommandSetLooping(String string, boolean bool) private voidCommandSetMasterVolume(float float2) private voidCommandSetPitch(String string, float float2) private voidCommandSetPosition(String string, float float2, float float3, float float4) private voidCommandSetPriority(String string, boolean bool) private voidCommandSetTemporary(String string, boolean bool) private voidCommandSetVolume(String string, float float2) private voidCommandStop(String string) private voidCommandTurnListener(float float2) private voidCommandUnloadSound(String string) private HashMapcopySources(HashMap hashMap) voidstatic Classprivate static ClasscurrentLibrary(boolean bool, Class class2) voiddequeueSound(String string, String string2) protected booleanerrorCheck(boolean bool, String string, int int2) protected voiderrorMessage(String string, int int2) voidvoidvoidvoidvoidfeedRawAudioData(String string, byte[] byte2) voidstatic SoundSystemExceptionfloatfloatfloatprotected voidimportantMessage(String string, int int2) protected voidstatic booleanprivate static booleaninitialized(boolean bool, boolean bool2) voidprivate static SoundSystemExceptionlastException(boolean bool, SoundSystemException soundSystemException) static booleanlibraryCompatible(Class class2) protected voidvoidvoidprotected voidprotected voidvoidmoveListener(float float2, float float3, float float4) booleannewLibrary(Class class2) voidnewSource(boolean bool, String string, String string2, boolean bool2, float float2, float float3, float float4, int int2, float float5) voidnewSource(boolean bool, String string, URL uRL, String string2, boolean bool2, float float2, float float3, float float4, int int2, float float5) voidnewStreamingSource(boolean bool, String string, String string2, boolean bool2, float float2, float float3, float float4, int int2, float float5) voidnewStreamingSource(boolean bool, String string, URL uRL, String string2, boolean bool2, float float2, float float3, float float4, int int2, float float5) voidvoidbooleanplaying()booleanvoidqueueSound(String string, String string2) voidqueueSound(String string, URL uRL, String string2) quickPlay(boolean bool, String string, boolean bool2, float float2, float float3, float float4, int int2, float float5) quickPlay(boolean bool, URL uRL, String string, boolean bool2, float float2, float float3, float float4, int int2, float float5) quickStream(boolean bool, String string, boolean bool2, float float2, float float3, float float4, int int2, float float5) quickStream(boolean bool, URL uRL, String string, boolean bool2, float float2, float float3, float float4, int int2, float float5) voidrawDataStream(AudioFormat audioFormat, boolean bool, String string, float float2, float float3, float float4, int int2, float float5) voidremoveSource(String string) voidvoidvoidsetAttenuation(String string, int int2) voidsetDistOrRoll(String string, float float2) static voidsetException(SoundSystemException soundSystemException) voidsetListenerAngle(float float2) voidsetListenerOrientation(float float2, float float3, float float4, float float5, float float6, float float7) voidsetListenerPosition(float float2, float float3, float float4) voidsetLooping(String string, boolean bool) voidsetMasterVolume(float float2) voidvoidsetPosition(String string, float float2, float float3, float float4) voidsetPriority(String string, boolean bool) voidsetTemporary(String string, boolean bool) voidprotected static voidsnooze(long long2) voidbooleanswitchLibrary(Class class2) voidturnListener(float float2) voidunloadSound(String string)
-
Field Details
-
GET
private static final boolean GET- See Also:
-
SET
private static final boolean SET- See Also:
-
XXX
private static final boolean XXX- See Also:
-
currentLibrary
-
initialized
private static boolean initialized -
lastException
-
logger
-
soundLibrary
-
commandQueue
-
sourcePlayList
-
commandThread
-
randomNumberGenerator
-
className
-
-
Constructor Details
-
SoundSystem
public SoundSystem() -
SoundSystem
-
-
Method Details
-
linkDefaultLibrariesAndCodecs
protected void linkDefaultLibrariesAndCodecs() -
init
-
cleanup
public void cleanup() -
interruptCommandThread
public void interruptCommandThread() -
loadSound
-
loadSound
-
unloadSound
-
queueSound
-
queueSound
-
dequeueSound
-
fadeOut
-
fadeOut
-
fadeOutIn
-
fadeOutIn
-
checkFadeVolumes
public void checkFadeVolumes() -
backgroundMusic
-
backgroundMusic
-
newSource
-
newSource
-
newStreamingSource
-
newStreamingSource
-
rawDataStream
public void rawDataStream(AudioFormat audioFormat, boolean bool, String string, float float2, float float3, float float4, int int2, float float5) -
quickPlay
-
quickPlay
-
quickStream
-
quickStream
-
setPosition
-
setVolume
-
getVolume
-
setPitch
-
getPitch
-
setPriority
-
setLooping
-
setAttenuation
-
setDistOrRoll
-
feedRawAudioData
-
play
-
pause
-
stop
-
rewind
-
flush
-
cull
-
activate
-
setTemporary
-
removeSource
-
moveListener
public void moveListener(float float2, float float3, float float4) -
setListenerPosition
public void setListenerPosition(float float2, float float3, float float4) -
turnListener
public void turnListener(float float2) -
setListenerAngle
public void setListenerAngle(float float2) -
setListenerOrientation
public void setListenerOrientation(float float2, float float3, float float4, float float5, float float6, float float7) -
setMasterVolume
public void setMasterVolume(float float2) -
getMasterVolume
public float getMasterVolume() -
getListenerData
-
switchLibrary
-
newLibrary
-
CommandNewLibrary
-
CommandInitialize
private void CommandInitialize() -
CommandLoadSound
-
CommandUnloadSound
-
CommandQueueSound
-
CommandDequeueSound
-
CommandFadeOut
-
CommandFadeOutIn
-
CommandCheckFadeVolumes
private void CommandCheckFadeVolumes() -
CommandNewSource
private void CommandNewSource(boolean bool, boolean bool2, boolean bool3, String string, FilenameURL filenameURL, float float2, float float3, float float4, int int2, float float5) -
CommandRawDataStream
private void CommandRawDataStream(AudioFormat audioFormat, boolean bool, String string, float float2, float float3, float float4, int int2, float float5) -
CommandQuickPlay
private void CommandQuickPlay(boolean bool, boolean bool2, boolean bool3, String string, FilenameURL filenameURL, float float2, float float3, float float4, int int2, float float5, boolean bool4) -
CommandSetPosition
-
CommandSetVolume
-
CommandSetPitch
-
CommandSetPriority
-
CommandSetLooping
-
CommandSetAttenuation
-
CommandSetDistOrRoll
-
CommandPlay
-
CommandFeedRawAudioData
-
CommandPause
-
CommandStop
-
CommandRewind
-
CommandFlush
-
CommandSetTemporary
-
CommandRemoveSource
-
CommandMoveListener
private void CommandMoveListener(float float2, float float3, float float4) -
CommandSetListenerPosition
private void CommandSetListenerPosition(float float2, float float3, float float4) -
CommandTurnListener
private void CommandTurnListener(float float2) -
CommandSetListenerAngle
private void CommandSetListenerAngle(float float2) -
CommandSetListenerOrientation
private void CommandSetListenerOrientation(float float2, float float3, float float4, float float5, float float6, float float7) -
CommandCull
-
CommandActivate
-
CommandSetMasterVolume
private void CommandSetMasterVolume(float float2) -
ManageSources
protected void ManageSources() -
CommandQueue
-
removeTemporarySources
public void removeTemporarySources() -
playing
-
playing
public boolean playing() -
copySources
-
libraryCompatible
-
currentLibrary
-
initialized
public static boolean initialized() -
getLastException
-
setException
-
initialized
private static boolean initialized(boolean bool, boolean bool2) -
currentLibrary
-
lastException
private static SoundSystemException lastException(boolean bool, SoundSystemException soundSystemException) -
snooze
protected static void snooze(long long2) -
message
-
importantMessage
-
errorCheck
-
errorMessage
-