2021-11-02 21:49:55 +00:00
|
|
|
## `~_StaticSound_LoadWAV(filePath)`
|
2021-11-02 21:01:25 +00:00
|
|
|
|
|
|
|
**Returns:** Number, a **static sound ID**
|
|
|
|
|
|
|
|
|Argument |Datatype|Description |
|
|
|
|
|----------|--------|------------------------------------------------------|
|
|
|
|
|`filePath`|string | |
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-11-02 21:49:55 +00:00
|
|
|
## `~_StaticSound_CreateSoundInstance()`
|
2021-11-02 21:01:25 +00:00
|
|
|
|
|
|
|
**Returns:** Number, a **sound instance ID**
|
|
|
|
|
|
|
|
|Argument |Datatype|Description |
|
|
|
|
|---------------|--------|------------------------------------------------------|
|
|
|
|
|`staticSoundID`|number | |
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-11-02 21:49:55 +00:00
|
|
|
## `~_StaticSound_Destroy(staticSoundID)`
|
2021-11-02 21:01:25 +00:00
|
|
|
|
|
|
|
**Returns:** N/A (`undefined`)
|
|
|
|
|
|
|
|
|Argument |Datatype|Description |
|
|
|
|
|---------------|--------|------------------------------------------------------|
|
|
|
|
|`staticSoundID`|number | |
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-11-02 21:49:55 +00:00
|
|
|
## `~_StreamingSound_LoadOGG(filePath)`
|
2021-11-02 21:01:25 +00:00
|
|
|
|
|
|
|
**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.
|