Package paulscode.sound
Class Library
java.lang.Object
paulscode.sound.Library
- Direct Known Subclasses:
LibraryLWJGLOpenAL
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected HashMapprotected ListenerDataprivate SoundSystemLoggerprivate MidiChannelprivate intprivate intprotected Listprivate String[]protected HashMapprotected Listprivate String[]protected StreamThread -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidcleanup()voidcopySources(HashMap hashMap) protected ChannelcreateChannel(int int2) voidvoiddequeueSound(String string, String string2) protected booleanerrorCheck(boolean bool, String string) protected voiderrorMessage(String string) voidfadeOut(String string, FilenameURL filenameURL, long long2) voidfadeOutIn(String string, FilenameURL filenameURL, long long2, long long3) intfeedRawAudioData(String string, byte[] byte2) intfeedRawAudioData(Source source, byte[] byte2) voidstatic Stringprivate ChannelgetNextChannel(Source source) floatstatic StringgetTitle()floatprotected voidimportantMessage(String string) voidinit()static booleanvoidvoidloadMidi(boolean bool, String string, FilenameURL filenameURL) booleanloadSound(FilenameURL filenameURL) protected voidbooleanmidiSourcename(String string) voidmoveListener(float float2, float float3, float float4) voidnewSource(boolean bool, boolean bool2, boolean bool3, String string, FilenameURL filenameURL, float float2, float float3, float float4, int int2, float float5) voidvoidvoidprotected voidprintStackTrace(Exception exception) voidqueueSound(String string, FilenameURL filenameURL) voidquickPlay(boolean bool, boolean bool2, boolean bool3, String string, FilenameURL filenameURL, float float2, float float3, float float4, int int2, float float5, boolean bool4) voidrawDataStream(AudioFormat audioFormat, boolean bool, String string, float float2, float float3, float float4, int int2, float float5) voidremoveSource(String string) voidvoidvoidvoidsetAttenuation(String string, int int2) voidsetDistOrRoll(String string, float float2) voidsetListenerAngle(float float2) voidsetListenerData(ListenerData listenerData) 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) voidsetMidiChannel(MidiChannel midiChannel) voidvoidsetPosition(String string, float float2, float float3, float float4) voidsetPriority(String string, boolean bool) voidsetTemporary(String string, boolean bool) voidvoidvoidturnListener(float float2) voidvoidunloadSound(String string)
-
Field Details
-
logger
-
listener
-
bufferMap
-
sourceMap
-
midiChannel
-
streamingChannels
-
normalChannels
-
streamingChannelSourceNames
-
normalChannelSourceNames
-
nextStreamingChannel
private int nextStreamingChannel -
nextNormalChannel
private int nextNormalChannel -
streamThread
-
-
Constructor Details
-
Library
public Library()
-
-
Method Details
-
cleanup
public void cleanup() -
init
public void init() -
libraryCompatible
public static boolean libraryCompatible() -
createChannel
-
loadSound
-
unloadSound
-
rawDataStream
public void rawDataStream(AudioFormat audioFormat, boolean bool, String string, float float2, float float3, float float4, int int2, float float5) -
newSource
public void newSource(boolean bool, boolean bool2, boolean bool3, String string, FilenameURL filenameURL, float float2, float float3, float float4, int int2, float float5) -
quickPlay
public void quickPlay(boolean bool, boolean bool2, boolean bool3, String string, FilenameURL filenameURL, float float2, float float3, float float4, int int2, float float5, boolean bool4) -
setTemporary
-
setPosition
-
setPriority
-
setLooping
-
setAttenuation
-
setDistOrRoll
-
feedRawAudioData
-
feedRawAudioData
-
play
-
play
-
stop
-
pause
-
rewind
-
flush
-
cull
-
activate
-
setMasterVolume
public void setMasterVolume(float float2) -
setVolume
-
getVolume
-
setPitch
-
getPitch
-
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) -
setListenerData
-
copySources
-
removeSource
-
removeTemporarySources
public void removeTemporarySources() -
getNextChannel
-
replaySources
public void replaySources() -
queueSound
-
dequeueSound
-
fadeOut
-
fadeOutIn
-
checkFadeVolumes
public void checkFadeVolumes() -
loadMidi
-
unloadMidi
public void unloadMidi() -
midiSourcename
-
getSource
-
getMidiChannel
-
setMidiChannel
-
listenerMoved
public void listenerMoved() -
getSources
-
getListenerData
-
getTitle
-
getDescription
-
getClassName
-
message
-
importantMessage
-
errorCheck
-
errorMessage
-
printStackTrace
-