Drag[en]gine Script Module DragonScript Script API
1.0
|
Synthesizer source sound. More...
Public Member Functions | |
Constructors | |
SSSound | new () |
Create animator source. More... | |
Management | |
void | setSound (Sound sound) |
Set sound or null if silent. More... | |
void | setMinSpeed (float speed) |
Set minimum play speed. More... | |
void | setMaxSpeed (float speed) |
Set maximum play speed. More... | |
void | setLooping (bool looping) |
Set if sound is played back looping. More... | |
void | targetAddLink (int target, int link) |
Add link to target. More... | |
void | targetRemoveAllLinks (int target) |
Remove all links from target. More... | |
![]() | |
void | setEnabled (bool enabled) |
Source is enabled. More... | |
void | setMixMode (int mixMode) |
Set if source is enabled. More... | |
void | setBlendFactor (float factor) |
Set mixing mode. More... | |
void | setMinVolume (float volume) |
Set minimum volume relative to speaker volume in the range from 0 to 1. More... | |
void | setMaxVolume (float volume) |
Set maximum volume relative to speaker volume in the range from 0 to 1. More... | |
void | setMinPanning (float panning) |
Set minimum panning in the range from -1(left) to 1(right). More... | |
void | setMaxPanning (float panning) |
Set maximum panning in the range from -1(left) to 1(right). More... | |
void | addEffect (SynthesizerEffect effect) |
Add effect. More... | |
void | removeAllEffects () |
Remove all effects. More... | |
Static Public Attributes | |
Targets. | |
static final int | TARGET_BLEND_FACTOR = 0 |
Blend factor target. More... | |
static final int | TARGET_VOLUME = 1 |
Volume target. More... | |
static final int | TARGET_PANNING = 2 |
Panning target. More... | |
static final int | TARGET_SPEED = 3 |
Speed target. More... | |
static final int | TARGET_PLAY = 4 |
Play state target (0-1 -> play, pause, stop). More... | |
![]() | |
static final int | BLEND = 0 |
Blend sound output of this source over the previous sound. More... | |
static final int | ADD = 1 |
Add sound output to the previous sounds clipping if too loud. More... | |
Additional Inherited Members | |
![]() | |
SynthesizerSource | new () |
Create animator source. More... | |
SSSound new | ( | ) |
Create animator source.
void setLooping | ( | bool | looping | ) |
Set if sound is played back looping.
void setMaxSpeed | ( | float | speed | ) |
Set maximum play speed.
A value of 1 plays at orignal speed. A value of 2 would play double as fast. Negative values play backwards. A value of -1 would play backwards at original speed.
void setMinSpeed | ( | float | speed | ) |
Set minimum play speed.
A value of 1 plays at orignal speed. A value of 2 would play double as fast. Negative values play backwards. A value of -1 would play backwards at original speed.
void setSound | ( | Sound | sound | ) |
Set sound or null if silent.
void targetAddLink | ( | int | target, |
int | link | ||
) |
Add link to target.
EInvalidParam | target is not a valid value. |
void targetRemoveAllLinks | ( | int | target | ) |
Remove all links from target.
EInvalidParam | target is not a valid value. |
|
static |
Blend factor target.
|
static |
Panning target.
|
static |
Play state target (0-1 -> play, pause, stop).
|
static |
Speed target.
|
static |
Volume target.