Package com.jme3.audio
Interface AudioSource
- All Known Implementing Classes:
- AudioNode
public interface AudioSource
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic enumStatusindicates the current status of the audio source.
- 
Method SummaryModifier and TypeMethodDescriptionintDo not use.floatfloatfloatfloatgetPitch()floatfloatfloatfloatbooleanbooleanbooleanbooleanvoidsetChannel(int channel) Do not use.voidsetStatus(AudioSource.Status status) Do not use.
- 
Method Details- 
setChannelvoid setChannel(int channel) Do not use.- Parameters:
- channel- the desired channel index, or -1 if stopped
 
- 
getChannelint getChannel()Do not use.- Returns:
- the channel index, or -1 if stopped
 
- 
getDryFilterFilter getDryFilter()- Returns:
- The {#link Filter dry filter} that is set.
- See Also:
 
- 
getAudioDataAudioData 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.
 
- 
setStatusDo not use.- Parameters:
- status- the desired Status
 
- 
getStatusAudioSource.Status getStatus()- Returns:
- The AudioSource.Statusof the audio source. The status will be changed when either theAudioNode.play()orAudioNode.stop()methods are called.
 
- 
isLoopingboolean isLooping()- Returns:
- True if the audio will keep looping after it is done playing, otherwise, false.
- See Also:
 
- 
getPitchfloat getPitch()- Returns:
- The pitch of the audio, also the speed of playback.
- See Also:
 
- 
getVolumefloat getVolume()- Returns:
- The volume of this audio source.
- See Also:
 
- 
getTimeOffsetfloat getTimeOffset()- Returns:
- the time offset in the sound sample to start playing
 
- 
getPlaybackTimefloat getPlaybackTime()- Returns:
- the current playback position of the source in seconds.
 
- 
getPositionVector3f getPosition()- Returns:
- The position of the audio source.
 
- 
getVelocityVector3f getVelocity()- Returns:
- The velocity of the audio source.
- See Also:
 
- 
isReverbEnabledboolean isReverbEnabled()- Returns:
- True if reverb is enabled, otherwise false.
- See Also:
 
- 
getReverbFilterFilter getReverbFilter()- Returns:
- Filter for the reverberations of this audio source.
- See Also:
 
- 
getMaxDistancefloat getMaxDistance()- Returns:
- Maximum distance for this audio source.
- See Also:
 
- 
getRefDistancefloat getRefDistance()- Returns:
- The reference playing distance for the audio source.
- See Also:
 
- 
isDirectionalboolean isDirectional()- Returns:
- True if the audio source is directional
- See Also:
 
- 
getDirectionVector3f getDirection()- Returns:
- The direction of this audio source.
- See Also:
 
- 
getInnerAnglefloat getInnerAngle()- Returns:
- The directional audio source, cone inner angle.
- See Also:
 
- 
getOuterAnglefloat getOuterAngle()- Returns:
- The directional audio source, cone outer angle.
- See Also:
 
- 
isPositionalboolean isPositional()- Returns:
- True if the audio source is positional.
- See Also:
 
 
-