Create Functions-(Sound-Instances).md

main
Juju Adams 2021-11-02 21:13:56 +00:00
parent 08ae579d0f
commit 66d8433681
1 changed files with 180 additions and 0 deletions

View File

@ -0,0 +1,180 @@
## `FAudioGMS_SoundInstance_Play(soundInstanceID, loop)`
**Returns:** N/A (`undefined`)
|Argument |Datatype|Description |
|-----------------|--------|------------------------------------------------------|
|`soundInstanceID`|number | |
|`loop` |boolean | |
 
## `FAudioGMS_SoundInstance_Pause(soundInstanceID)`
**Returns:** N/A (`undefined`)
|Argument |Datatype|Description |
|-----------------|--------|------------------------------------------------------|
|`soundInstanceID`|number | |
 
## `FAudioGMS_SoundInstance_Stop(soundInstanceID)`
**Returns:** N/A (`undefined`)
|Argument |Datatype|Description |
|-----------------|--------|------------------------------------------------------|
|`soundInstanceID`|number | |
 
## `FAudioGMS_SoundInstance_Destroy(soundInstanceID)`
**Returns:** N/A (`undefined`)
|Argument |Datatype|Description |
|-----------------|--------|------------------------------------------------------|
|`soundInstanceID`|number | |
 
## `FAudioGMS_SoundInstance_DestroyWhenFinished(soundInstanceID)`
**Returns:** N/A (`undefined`)
|Argument |Datatype|Description |
|-----------------|--------|------------------------------------------------------|
|`soundInstanceID`|number | |
 
## `FAudioGMS_SoundInstance_SetPan(soundInstanceID, pan)`
**Returns:** N/A (`undefined`)
|Argument |Datatype|Description |
|-----------------|--------|---------------------------------------------------------------------------|
|`soundInstanceID`|number | |
|`pan` |number |Should be from `-1` (100% left) to `+1` (100% right) with `0` being central|
 
## `FAudioGMS_SoundInstance_SetPitch(soundInstanceID, pitch)`
**Returns:** N/A (`undefined`)
|Argument |Datatype|Description |
|-----------------|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------|
|`soundInstanceID`|number | |
|`pitch` |number |Frequency multiplier. A value of `2` will double the frequency and make the pitch higher, a value of `0.5` will halve the frequency and make the pitch lower|
 
## `FAudioGMS_SoundInstance_SetVolume(soundInstanceID, volume)`
**Returns:** N/A (`undefined`)
|Argument |Datatype|Description |
|-----------------|--------|--------------------------------------------------------|
|`soundInstanceID`|number | |
|`volume` |number | |
 
## `FAudioGMS_SoundInstance_Set3DPosition(soundInstanceID, x, y, z)`
**Returns:** N/A (`undefined`)
|Argument |Datatype|Description |
|-----------------|--------|--------------------------------------------------------|
|`soundInstanceID`|number | |
|`x` |number | |
|`y` |number | |
|`z` |number | |
 
## `FAudioGMS_SoundInstance_Set3DVelocity(soundInstanceID, xVelocity, yVelocity, zVelocity)`
**Returns:** N/A (`undefined`)
|Argument |Datatype|Description |
|-----------------|--------|--------------------------------------------------------|
|`soundInstanceID`|number | |
|`xVelocity` |number | |
|`yVelocity` |number | |
|`zVelocity` |number | |
 
## `FAudioGMS_SoundInstance_SetTrackPositionInSeconds(soundInstanceID, trackPositionInSeconds)`
**Returns:** N/A (`undefined`)
|Argument |Datatype|Description |
|------------------------|--------|--------------------------------------------------------|
|`soundInstanceID` |number | |
|`trackPositionInSeconds`|number | |
 
## `FAudioGMS_SoundInstance_SetVolumeOverTime(soundInstanceID, volume, milliseconds)`
**Returns:** N/A (`undefined`)
|Argument |Datatype|Description |
|-----------------|--------|--------------------------------------------------------|
|`soundInstanceID`|number | |
|`volume` |number | |
|`milliseconds` |number | |
 
## `FAudioGMS_SoundInstance_SetLowPassFilter(soundInstanceID, lowPassFilter, Q)`
**Returns:** N/A (`undefined`)
|Argument |Datatype|Description |
|-----------------|--------|--------------------------------------------------------|
|`soundInstanceID`|number | |
|`lowPassFilter` |number | |
|`Q` |number | |
 
## `FAudioGMS_SoundInstance_SetHighPassFilter(soundInstanceID, lowPassFilter, Q)`
**Returns:** N/A (`undefined`)
|Argument |Datatype|Description |
|-----------------|--------|--------------------------------------------------------|
|`soundInstanceID`|number | |
|`lowPassFilter` |number | |
|`Q` |number | |
 
## `FAudioGMS_SoundInstance_SetHighPassFilter(soundInstanceID, highPassFilter, Q)`
**Returns:** N/A (`undefined`)
|Argument |Datatype|Description |
|-----------------|--------|--------------------------------------------------------|
|`soundInstanceID`|number | |
|`highPassFilter` |number | |
|`Q` |number | |
 
## `FAudioGMS_SoundInstance_SetBandPassFilter(soundInstanceID, bandPassFilter, Q)`
**Returns:** N/A (`undefined`)
|Argument |Datatype|Description |
|-----------------|--------|--------------------------------------------------------|
|`soundInstanceID`|number | |
|`bandPassFilter` |number | |
|`Q` |number | |