setSoundSourceCurrentTime
Script::setSoundSourceCurrentTime
Sets the current time of a sound source.
Declaration
void setSoundSourceCurrentTime(SoundSourceID soundSourceID, float newTime);
Parameters
Name |
Type |
Description |
|---|---|---|
soundSourceID |
The sound source to change the gain of. |
|
newTime |
float |
The new current time of the sound source, in seconds. |
Returns
None.
Notes
If newTime is greater than the current’s Sound’s length, the sound stops, unless soundSourceID is looping.