Type:AudioLoadMode
From Resonite Wiki
More actions
The AudioLoadMode enum determines the strategy used during the playback of a StaticAudioClip.
Each strategy has some kind of tradeoff between CPU, RAM, and latency.
| Name | Value | Description |
|---|---|---|
Automatic
|
0 | If the audio clip duration is 10 seconds or less, then it'll be fully decoded. Otherwise, it's streamed from file. |
StreamFromFile
|
1 | The clip is gradually read from the disk and decoded during playback. Uses the least RAM, but has high latency and CPU usage. Best for things like music where a bit of delay wouldn't matter. |
StreamFromMemory
|
2 | The clip is copied into memory and decompressed during playback. Uses a small amount of RAM and has low latency, but uses more CPU. Best for medium-sized clips that are too big for FullyDecode, yet still need to play quickly. |
FullyDecode
|
3 | The clip is fully decompressed and decoded before getting copied into memory. Low latency with minimal CPU usage, but uses the most RAM. Best for short sound effects that need to play often. |