| Modifier and Type | Field and Description |
|---|---|
| private final AL | |
| private Buffer | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Buffer | Returns: the buffer associated with this sourceGets the buffer associated with this source. |
| public int | Returns: the number of buffers already processed on this source.Gets the number of buffers already processed on this source. |
| public int | Returns: the number of buffers currently queued on this source.Gets the number of buffers currently queued on this source. |
| public float | Returns: the gain when outside the oriented cone.Gets the gain when outside the oriented cone. |
| public Vec3f | |
| public float | |
| public boolean | Returns: true-looping is on, false-looping is offindicates whether looping is turned on or off. |
| public float | Returns: the max ditance for source attentuation.Gets the max distance where there will no longer be any attenuation of the source. |
| public float | |
| public float | |
| public float | |
| public Vec3f | Returns: a Vec3f object containing the x,y,z position of the source.Gets the x,y,z position of the source. |
| public float | Returns: the reference distance for the source.Gets the distance under which the volume for the source would normally drop by half, before being influenced by rolloff factor or max distance. |
| public float | |
| public Vec3f | |
| public boolean | Returns: true if this source is playing.Determines whether or not this source is playing. |
| public boolean | Returns: true if the position of the source is relative to the listener, false if the position of the source is relative to the world.Determines if the position of the source is relative to the listener. |
| public void | |
| public void | |
| public void | queueBuffers(final Buffer[]
a set of initialized (loaded) buffers. buffers)Queues one or more buffers on a source. |
| public void | |
| public void | |
| public void | setConeOuterGain(final float
the gain when outside the oriented cone. coneOuterGain)Sets the gain when outside the oriented cone. |
| public void | setDirection(final Vec3f
the direction vector of the source. direction)Sets the direction vector of the source. |
| public void | setDirection(final float
the x direction of the source. x, final float the y direction of the source. y, final float the z direction of the source. z)Sets the direction vector of the source. |
| public void | setGain(final float
the gain of the audio on this source gain)Sets the gain of the audio on this source. |
| public void | |
| public void | setMaxDistance(final float
the max ditance for source attentuation. maxDistance)Sets the max distance where there will no longer be any attenuation of the source. |
| public void | setMaxGain(final float
the maximum gain for this source maxGain)Sets the maximum gain for this source. |
| public void | setMinGain(final float
the minimum gain for this source. minGain)Sets the minimum gain for this source. |
| public void | setPitch(final float
the pitch value of this source. pitch)Sets the pitch of the audio on this source. |
| public void | setPosition(final Vec3f
a Vec3f object containing the x,y,z position of the
source. position)Sets the x,y,z position of the source. |
| public void | setPosition(final float
the x position of the source. x, final float the y position of the source. y, final float the z position of the source. z)Sets the x,y,z position of the source. |
| public void | setReferenceDistance(final float
the reference distance for the source. referenceDistance)Sets the distance under which the volume for the source would normally drop by half, before being influenced by rolloff factor or max distance. |
| public void | setRolloffFactor(final float
the rolloff rate of the source. rolloffFactor)Sets the rolloff rate of the source. |
| public void | setSourceRelative(final boolean
true if the position of the source is relative
to the listener, false if the position of the source is relative to the
world. isRelative)Determines if the position of the source is relative to the listener. |
| public void | setVelocity(final Vec3f
the velocity vector of the source velocity)Sets the velocity vector of the source. |
| public void | setVelocity(final float
the x velocity of the source. x, final float the y velocity of the source. y, final float the z velocity of the source. z)Sets the velocity vector of the source. |
| public void | |
| public void | unqueueBuffers(final Buffer[]
a set of previously queued buffers. buffers)Unqueues one or more buffers on a source. |
| al | back to summary |
|---|---|
| private final AL al | |
| buffer | back to summary |
|---|---|
| private Buffer buffer | |
| sourceID | back to summary |
|---|---|
| private final int sourceID | |
| Source | back to summary |
|---|---|
| pack-priv Source(final AL al, final int sourceID) | |
| delete | back to summary |
|---|---|
| public void delete() Delete this source, freeing its resources. | |
| getBuffer | back to summary |
|---|---|
| public Buffer getBuffer() Gets the buffer associated with this source.
| |
| getBuffersProcessed | back to summary |
|---|---|
| public int getBuffersProcessed() Gets the number of buffers already processed on this source.
| |
| getBuffersQueued | back to summary |
|---|---|
| public int getBuffersQueued() Gets the number of buffers currently queued on this source.
| |
| getConeOuterGain | back to summary |
|---|---|
| public float getConeOuterGain() Gets the gain when outside the oriented cone.
| |
| getDirection | back to summary |
|---|---|
| public Vec3f getDirection() Gets the direction vector of the source.
| |
| getGain | back to summary |
|---|---|
| public float getGain() Gets the gain of the audio on this source. This can be used to contro the volume of the source.
| |
| getLooping | back to summary |
|---|---|
| public boolean getLooping() indicates whether looping is turned on or off.
| |
| getMaxDistance | back to summary |
|---|---|
| public float getMaxDistance() Gets the max distance where there will no longer be any attenuation of the source.
| |
| getMaxGain | back to summary |
|---|---|
| public float getMaxGain() SGets the maximum gain for this source.
| |
| getMinGain | back to summary |
|---|---|
| public float getMinGain() Gets the minimum gain for this source.
| |
| getPitch | back to summary |
|---|---|
| public float getPitch() Gets the pitch of the audio on this source. The pitch may be modified without altering the playback speed of the audio.
| |
| getPosition | back to summary |
|---|---|
| public Vec3f getPosition() Gets the x,y,z position of the source.
| |
| getReferenceDistance | back to summary |
|---|---|
| public float getReferenceDistance() Gets the distance under which the volume for the source would normally drop by half, before being influenced by rolloff factor or max distance.
| |
| getRolloffFactor | back to summary |
|---|---|
| public float getRolloffFactor() Gets the rolloff rate of the source. The default value is 1.0
| |
| getVelocity | back to summary |
|---|---|
| public Vec3f getVelocity() Gets the velocity vector of the source.
| |
| isPlaying | back to summary |
|---|---|
| public boolean isPlaying() Determines whether or not this source is playing.
| |
| isSourceRelative | back to summary |
|---|---|
| public boolean isSourceRelative() Determines if the position of the source is relative to the listener. The default is false.
| |
| pause | back to summary |
|---|---|
| public void pause() pauses the audio in this Source. | |
| play | back to summary |
|---|---|
| public void play() Beginning playing the audio in this source. | |
| queueBuffers | back to summary |
|---|---|
| public void queueBuffers(final Buffer[] buffers) Queues one or more buffers on a source. Useful for streaming audio, buffers will be played in the order they are queued.
| |
| rewind | back to summary |
|---|---|
| public void rewind() Rewinds the audio in this source | |
| setBuffer | back to summary |
|---|---|
| public void setBuffer(final Buffer buffer) Sets the buffer associated with this source.
| |
| setConeOuterGain | back to summary |
|---|---|
| public void setConeOuterGain(final float coneOuterGain) Sets the gain when outside the oriented cone.
| |
| setDirection | back to summary |
|---|---|
| public void setDirection(final Vec3f direction) Sets the direction vector of the source.
| |
| setDirection | back to summary |
|---|---|
| public void setDirection(final float x, final float y, final float z) Sets the direction vector of the source.
| |
| setGain | back to summary |
|---|---|
| public void setGain(final float gain) Sets the gain of the audio on this source. This can be used to contro the volume of the source.
| |
| setLooping | back to summary |
|---|---|
| public void setLooping(final boolean isLooping) turns looping on or off.
| |
| setMaxDistance | back to summary |
|---|---|
| public void setMaxDistance(final float maxDistance) Sets the max distance where there will no longer be any attenuation of the source.
| |
| setMaxGain | back to summary |
|---|---|
| public void setMaxGain(final float maxGain) Sets the maximum gain for this source.
| |
| setMinGain | back to summary |
|---|---|
| public void setMinGain(final float minGain) Sets the minimum gain for this source.
| |
| setPitch | back to summary |
|---|---|
| public void setPitch(final float pitch) Sets the pitch of the audio on this source. The pitch may be modified without altering the playback speed of the audio.
| |
| setPosition | back to summary |
|---|---|
| public void setPosition(final Vec3f position) Sets the x,y,z position of the source.
| |
| setPosition | back to summary |
|---|---|
| public void setPosition(final float x, final float y, final float z) Sets the x,y,z position of the source.
| |
| setReferenceDistance | back to summary |
|---|---|
| public void setReferenceDistance(final float referenceDistance) Sets the distance under which the volume for the source would normally drop by half, before being influenced by rolloff factor or max distance.
| |
| setRolloffFactor | back to summary |
|---|---|
| public void setRolloffFactor(final float rolloffFactor) Sets the rolloff rate of the source. The default value is 1.0
| |
| setSourceRelative | back to summary |
|---|---|
| public void setSourceRelative(final boolean isRelative) Determines if the position of the source is relative to the listener. The default is false.
| |
| setVelocity | back to summary |
|---|---|
| public void setVelocity(final Vec3f velocity) Sets the velocity vector of the source.
| |
| setVelocity | back to summary |
|---|---|
| public void setVelocity(final float x, final float y, final float z) Sets the velocity vector of the source.
| |
| stop | back to summary |
|---|---|
| public void stop() Stops the audio in this Source | |
| unqueueBuffers | back to summary |
|---|---|
| public void unqueueBuffers(final Buffer[] buffers) Unqueues one or more buffers on a source.
| |