SoundEmitter
Complete API reference for SoundEmitter, including constructors, attributes, virtual attributes, and methods.
Package: JAVARuntime
Category: Uncategorized
Component: no
public class SoundEmitter
Constructors
| Signature | Description |
|---|---|
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
| 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 | Virtual attribute exposed by getLeftVolume. Access it like a field to read or write the underlying value. |
pitch | float | get/set | Virtual attribute exposed by getPitch. Access it like a field to read or write the underlying value. |
rightVolume | float | get/set | Virtual attribute exposed by getRightVolume. Access it like a field to read or write the underlying value. |
speed | float | get/set | Virtual attribute exposed by getSpeed. Access it like a field to read or write the underlying value. |
volume | float | get/set | Virtual attribute exposed by getVolume. Access it like a field to read or write the underlying value. |
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 | Performs the seekToSecond operation using the provided parameters (second). |
isLoop() | boolean | Returns whether loop is true. |
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 true. |
isPlaying() | boolean | Returns whether playing is true. |
isStopped() | boolean | Returns whether stopped is true. |