FAudioGMS-Docs/docs/latest/Functions-(Loading-Sound-As...

41 lines
1.4 KiB
Markdown
Raw Normal View History

## `~_StaticSound_LoadWAV(filePath)`
**Returns:** Number, a **static sound ID**
|Argument |Datatype|Description |
|----------|--------|------------------------------------------------------|
|`filePath`|string | |
 
## `~_StaticSound_CreateSoundInstance()`
**Returns:** Number, a **sound instance ID**
|Argument |Datatype|Description |
|---------------|--------|------------------------------------------------------|
|`staticSoundID`|number | |
 
## `~_StaticSound_Destroy(staticSoundID)`
**Returns:** N/A (`undefined`)
|Argument |Datatype|Description |
|---------------|--------|------------------------------------------------------|
|`staticSoundID`|number | |
 
## `~_StreamingSound_LoadOGG(filePath)`
**Returns:** Number, a **sound instance ID**
|Argument |Datatype|Description |
|----------|--------|------------------------------------------------------|
|`filePath`|string | |
?> Please note that this function returns a sound instance ID rather than a static sound ID.
!> It is not recommended to try to stream the same .ogg file twice.