add SetLoopPoints

main
cosmonaut 2021-11-02 19:46:48 -07:00
parent 9b853731e8
commit 6e66dd748c
1 changed files with 16 additions and 0 deletions

View File

@ -145,6 +145,22 @@ Jumps to a fixed position in the sound instance's audio asset. This is useful fo
   
## `~_SoundInstance_SetLoopPoints(soundInstanceID, loopStartInMilliseconds, loopEndInMilliseconds)`
**Returns:** N/A (`undefined`)
|Argument |Datatype|Description |
|------------------------|--------|--------------------------------------------------------|
|`soundInstanceID` |number |Sound instance to target |
|`loopStartInMilliseconds` |number |Start of the loop, in milliseconds |
|`loopEndInMilliseconds` |number |End of the loop, in milliseconds |
Loops over a specific region of the sound instance. This is useful for dynamic audio.
!> This function must be called BEFORE calling `FAudioGMS_SoundInstance_Play` or it will not behave as you expect.
 
## `~_SoundInstance_SetVolumeOverTime(soundInstanceID, volume, milliseconds)` ## `~_SoundInstance_SetVolumeOverTime(soundInstanceID, volume, milliseconds)`
**Returns:** N/A (`undefined`) **Returns:** N/A (`undefined`)