Skip to main content

SoundEmitter

Complete API reference for SoundEmitter, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: Uncategorized

Component: no


public class SoundEmitter

Constructors

SignatureDescription
SoundEmitter(NativeSoundEmitter)Executes SoundEmitter and returns after the underlying engine call finishes.
SoundEmitter(NativeFloatBuffer, int)Executes SoundEmitter and returns after the underlying engine call finishes.
SoundEmitter(float[], int)Creates a new instance of SoundEmitter.
SoundEmitter(SoundData)Creates a new instance of SoundEmitter.
SoundEmitter(File)Executes SoundEmitter and returns after the underlying engine call finishes.

Attributes

NameTypeDescription
instanceNativeSoundEmitterRepresents the instance value stored on this instance. Read or assign to update the property.

Virtual Attributes

NameTypeAccessDescription
leftVolumefloatget/setVirtual attribute exposed by getLeftVolume. Access it like a field to read or write the underlying value.
pitchfloatget/setVirtual attribute exposed by getPitch. Access it like a field to read or write the underlying value.
rightVolumefloatget/setVirtual attribute exposed by getRightVolume. Access it like a field to read or write the underlying value.
speedfloatget/setVirtual attribute exposed by getSpeed. Access it like a field to read or write the underlying value.
volumefloatget/setVirtual attribute exposed by getVolume. Access it like a field to read or write the underlying value.

Methods

SignatureReturnsDescription
setVolumes(float, float)voidSets or updates the volumes.
setVolumes(float, float, float)voidSets or updates the volumes.
getCurrentSecond()floatReturns the current current second.
getTotalSeconds()floatReturns the current total seconds.
seekToSecond(float)voidPerforms the seekToSecond operation using the provided parameters (second).
isLoop()booleanReturns whether loop is true.
setLoop(boolean)voidSets or updates the loop.
play()voidExecutes play and returns after the underlying engine call finishes.
pause()voidExecutes pause and returns after the underlying engine call finishes.
stop()voidExecutes stop and returns after the underlying engine call finishes.
isPaused()booleanReturns whether paused is true.
isPlaying()booleanReturns whether playing is true.
isStopped()booleanReturns whether stopped is true.