Package com.jme3.audio
Interface AudioSource
- All Known Implementing Classes:
AudioNode
public interface AudioSource
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumStatusindicates the current status of the audio source. -
Method Summary
Modifier and TypeMethodDescriptionintDo not use.floatfloatfloatfloatgetPitch()floatfloatfloatfloatbooleanbooleanbooleanbooleanvoidsetChannel(int channel) Do not use.voidsetStatus(AudioSource.Status status) Do not use.
-
Method Details
-
setChannel
void setChannel(int channel) Do not use.- Parameters:
channel- the desired channel index, or -1 if stopped
-
getChannel
int getChannel()Do not use.- Returns:
- the channel index, or -1 if stopped
-
getDryFilter
Filter getDryFilter()- Returns:
- The {#link Filter dry filter} that is set.
- See Also:
-
getAudioData
AudioData getAudioData()- Returns:
- The
AudioDataset previously withAudioNode.setAudioData(com.jme3.audio.AudioData, com.jme3.audio.AudioKey)or any of the constructors that initialize the audio data.
-
setStatus
Do not use.- Parameters:
status- the desired Status
-
getStatus
AudioSource.Status getStatus()- Returns:
- The
AudioSource.Statusof the audio source. The status will be changed when either theAudioNode.play()orAudioNode.stop()methods are called.
-
isLooping
boolean isLooping()- Returns:
- True if the audio will keep looping after it is done playing, otherwise, false.
- See Also:
-
getPitch
float getPitch()- Returns:
- The pitch of the audio, also the speed of playback.
- See Also:
-
getVolume
float getVolume()- Returns:
- The volume of this audio source.
- See Also:
-
getTimeOffset
float getTimeOffset()- Returns:
- the time offset in the sound sample to start playing
-
getPlaybackTime
float getPlaybackTime()- Returns:
- the current playback position of the source in seconds.
-
getPosition
Vector3f getPosition()- Returns:
- The position of the audio source.
-
getVelocity
Vector3f getVelocity()- Returns:
- The velocity of the audio source.
- See Also:
-
isReverbEnabled
boolean isReverbEnabled()- Returns:
- True if reverb is enabled, otherwise false.
- See Also:
-
getReverbFilter
Filter getReverbFilter()- Returns:
- Filter for the reverberations of this audio source.
- See Also:
-
getMaxDistance
float getMaxDistance()- Returns:
- Maximum distance for this audio source.
- See Also:
-
getRefDistance
float getRefDistance()- Returns:
- The reference playing distance for the audio source.
- See Also:
-
isDirectional
boolean isDirectional()- Returns:
- True if the audio source is directional
- See Also:
-
getDirection
Vector3f getDirection()- Returns:
- The direction of this audio source.
- See Also:
-
getInnerAngle
float getInnerAngle()- Returns:
- The directional audio source, cone inner angle.
- See Also:
-
getOuterAngle
float getOuterAngle()- Returns:
- The directional audio source, cone outer angle.
- See Also:
-
isPositional
boolean isPositional()- Returns:
- True if the audio source is positional.
- See Also:
-