SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF1 Modding => Topic started by: {AR}MetalKiller on February 11, 2023, 07:15:55 AM

Title: Sound Regions and Streams
Post by: {AR}MetalKiller on February 11, 2023, 07:15:55 AM
Howdy,

recently, I added sound streams to my map and used multiple sound regions to play those on the map.
However, I am noticing some strange issues when stepping into the region.
It seems that the sound streams need to buffer before they can be played.

Example:
1. Stepping into 1st sound region.
2. Sound stream of the region plays (as expected so far).
3. Stepping outside the 1st sound region
4. Stepping into 2nd sound region.
5. Sound stream of region 1 plays for a couple of seconds.
6. Sound stream of the 2nd region plays.

This issue repeats for every region the player steps into.
Event for the sound that already should have been loaded.
Is the game loading the sound files from disk every time?!

Note:
Most of the sound files are ~30 seconds and have ~1-3 MB.

Any ideas what is causing this, or how I could solve this?
EhPortal 1.34 © 2024, WebDev