Package paulscode.sound
Class Source
java.lang.Object
paulscode.sound.Source
- Direct Known Subclasses:
SourceLWJGLOpenAL
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanintprotected ICodecfloatfloatprotected floatprotected longprotected floatprotected longfloatprivate static final booleanprotected longprotected Classprivate SoundSystemLoggerprivate booleanprotected floatbooleanbooleanbooleanprotected booleanprivate static final booleanprotected SoundBufferprotected final Objectprotected LinkedListfloatprivate booleanbooleanbooleanbooleanbooleanprivate static final boolean -
Constructor Summary
ConstructorsConstructorDescriptionSource(boolean bool, boolean bool2, boolean bool3, String string, FilenameURL filenameURL, SoundBuffer soundBuffer, float float2, float float3, float float4, int int2, float float5, boolean bool4) Source(AudioFormat audioFormat, boolean bool, String string, float float2, float float3, float float4, int int2, float float5) Source(Source source, SoundBuffer soundBuffer) -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()booleanactive()private booleanactive(boolean bool, boolean bool2) voidchangeSource(boolean bool, boolean bool2, boolean bool3, String string, FilenameURL filenameURL, SoundBuffer soundBuffer, float float2, float float3, float float4, int int2, float float5, boolean bool4) booleanvoidcleanup()voidcull()voiddequeueSound(String string) protected booleanerrorCheck(boolean bool, String string) protected voiderrorMessage(String string) voidfadeOut(FilenameURL filenameURL, long long2) voidfadeOutIn(FilenameURL filenameURL, long long2, long long3) intfeedRawAudioData(Channel channel, byte[] byte2) voidflush()floatfloatgetPitch()protected voidimportantMessage(String string) booleanvoidprotected voidvoidpause()booleanpaused()private booleanpaused(boolean bool, boolean bool2) voidbooleanplaying()voidbooleanpreLoad()protected voidprintStackTrace(Exception exception) voidqueueSound(FilenameURL filenameURL) booleanvoidrewind()voidsetAttenuation(int int2) voidsetDistOrRoll(float float2) voidsetLooping(boolean bool) voidsetPitch(float float2) voidsetPosition(float float2, float float3, float float4) voidsetPriority(boolean bool) voidsetTemporary(boolean bool) voidstop()booleanstopped()private booleanstopped(boolean bool, boolean bool2) booleanstream()
-
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:
-
libraryType
-
logger
-
rawDataStream
public boolean rawDataStream -
rawDataFormat
-
temporary
public boolean temporary -
priority
public boolean priority -
toStream
public boolean toStream -
toLoop
public boolean toLoop -
toPlay
public boolean toPlay -
sourcename
-
filenameURL
-
position
-
attModel
public int attModel -
distOrRoll
public float distOrRoll -
gain
public float gain -
sourceVolume
public float sourceVolume -
pitch
protected float pitch -
distanceFromListener
public float distanceFromListener -
channel
-
active
private boolean active -
stopped
private boolean stopped -
paused
private boolean paused -
soundBuffer
-
codec
-
reverseByteOrder
protected boolean reverseByteOrder -
soundSequenceQueue
-
soundSequenceLock
-
preLoad
public boolean preLoad -
fadeOutGain
protected float fadeOutGain -
fadeInGain
protected float fadeInGain -
fadeOutMilis
protected long fadeOutMilis -
fadeInMilis
protected long fadeInMilis -
lastFadeCheck
protected long lastFadeCheck
-
-
Constructor Details
-
Source
public Source(boolean bool, boolean bool2, boolean bool3, String string, FilenameURL filenameURL, SoundBuffer soundBuffer, float float2, float float3, float float4, int int2, float float5, boolean bool4) -
Source
-
Source
public Source(AudioFormat audioFormat, boolean bool, String string, float float2, float float3, float float4, int int2, float float5)
-
-
Method Details
-
cleanup
public void cleanup() -
queueSound
-
dequeueSound
-
fadeOut
-
fadeOutIn
-
checkFadeOut
public boolean checkFadeOut() -
incrementSoundSequence
public boolean incrementSoundSequence() -
setTemporary
public void setTemporary(boolean bool) -
listenerMoved
public void listenerMoved() -
setPosition
public void setPosition(float float2, float float3, float float4) -
positionChanged
public void positionChanged() -
setPriority
public void setPriority(boolean bool) -
setLooping
public void setLooping(boolean bool) -
setAttenuation
public void setAttenuation(int int2) -
setDistOrRoll
public void setDistOrRoll(float float2) -
getDistanceFromListener
public float getDistanceFromListener() -
setPitch
public void setPitch(float float2) -
getPitch
public float getPitch() -
reverseByteOrderRequired
public boolean reverseByteOrderRequired() -
changeSource
public void changeSource(boolean bool, boolean bool2, boolean bool3, String string, FilenameURL filenameURL, SoundBuffer soundBuffer, float float2, float float3, float float4, int int2, float float5, boolean bool4) -
feedRawAudioData
-
play
-
stream
public boolean stream() -
preLoad
public boolean preLoad() -
pause
public void pause() -
stop
public void stop() -
rewind
public void rewind() -
flush
public void flush() -
cull
public void cull() -
activate
public void activate() -
active
public boolean active() -
playing
public boolean playing() -
stopped
public boolean stopped() -
paused
public boolean paused() -
active
private boolean active(boolean bool, boolean bool2) -
stopped
private boolean stopped(boolean bool, boolean bool2) -
paused
private boolean paused(boolean bool, boolean bool2) -
getClassName
-
message
-
importantMessage
-
errorCheck
-
errorMessage
-
printStackTrace
-