Skip to main content

PCMSoundEmitter

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

Package: JAVARuntime

Category: Uncategorized

Component: no


public class PCMSoundEmitter

Constructors

SignatureDescription
PCMSoundEmitter(NativeSoundEmitter)Creates a new instance of PCMSoundEmitter.
PCMSoundEmitter(NativeFloatBuffer)Creates a new instance of PCMSoundEmitter.
PCMSoundEmitter(float[])Creates a new instance of PCMSoundEmitter.

Attributes

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

Virtual Attributes

NameTypeAccessDescription
leftVolumefloatget/setReturns the current left volume.
pitchfloatget/setReturns the current pitch.
rightVolumefloatget/setReturns the current right volume.
speedfloatget/setReturns the current speed.
volumefloatget/setReturns the current volume.

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)voidExecutes seekToSecond and returns after the underlying engine call finishes.
isLoop()booleanReturns whether loop is enabled.
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 enabled.
isPlaying()booleanReturns whether playing is enabled.
isStopped()booleanReturns whether stopped is enabled.