From 6e66dd748caa4b95fcb766969fe3fab403cfa4c2 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Tue, 2 Nov 2021 19:46:48 -0700 Subject: [PATCH] add SetLoopPoints --- docs/latest/Functions-(Sound-Instances).md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/latest/Functions-(Sound-Instances).md b/docs/latest/Functions-(Sound-Instances).md index 8c2fb6c..07b5d9a 100644 --- a/docs/latest/Functions-(Sound-Instances).md +++ b/docs/latest/Functions-(Sound-Instances).md @@ -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)` **Returns:** N/A (`undefined`)