PCMSoundEmitter
Complete API reference for PCMSoundEmitter, including constructors, attributes, virtual attributes, and methods.
Package: JAVARuntime
Category: Uncategorized
Component: no
public class PCMSoundEmitter
Constructors
| Signature | Description |
|---|---|
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
| Name | Type | Description |
|---|---|---|
instance | NativeSoundEmitter | Represents the instance value stored on this instance. Read or assign to update the property. |
Virtual Attributes
| Name | Type | Access | Description |
|---|---|---|---|
leftVolume | float | get/set | Returns the current left volume. |
pitch | float | get/set | Returns the current pitch. |
rightVolume | float | get/set | Returns the current right volume. |
speed | float | get/set | Returns the current speed. |
volume | float | get/set | Returns the current volume. |
Methods
| Signature | Returns | Description |
|---|---|---|
setVolumes(float, float) | void | Sets or updates the volumes. |
setVolumes(float, float, float) | void | Sets or updates the volumes. |
getCurrentSecond() | float | Returns the current current second. |
getTotalSeconds() | float | Returns the current total seconds. |
seekToSecond(float) | void | Executes seekToSecond and returns after the underlying engine call finishes. |
isLoop() | boolean | Returns whether loop is enabled. |
setLoop(boolean) | void | Sets or updates the loop. |
play() | void | Executes play and returns after the underlying engine call finishes. |
pause() | void | Executes pause and returns after the underlying engine call finishes. |
stop() | void | Executes stop and returns after the underlying engine call finishes. |
isPaused() | boolean | Returns whether paused is enabled. |
isPlaying() | boolean | Returns whether playing is enabled. |
isStopped() | boolean | Returns whether stopped is enabled. |