Solved Hole death sound

Question that is answered or resolved.
I was wondering... i had some absence from here and dont know if its possible now ... did someone came up with better way to load samples and play them without actual load time?
Im using loading samples for random sounds and whenever it loads samples for the first time the game pauses for a bit to load them, its a bit odd, so maybe there should be better way to preload them when level starts or when characters are preloaded from models.txt ?
Something like command for loading only samples and storing them in memory? Then using script with sample folder path to play it ?
When playng sounds in animation it doesnt load themand pauses  cause theyre in memory already, so something to preload only samples maybe in character header or something would help ?
OR did someone solved this issue differently ? I would prefere not to use scripts and variables to acquire samples ID later, i suppose it can be done but something much simpler would be really nice.
 
bWWd said:

There are at least a dozen ways to preload samples. It all depends on your module design.

IDs are required to play the sound, but you don't have to keep them around as globals after you preload. Just run loadsample() again in your local script to get the ID and then play it.

Loadsample is a smart function - if the sound path you give it is already loaded (no matter how you did it), loadsample just gets the ID. It doesn't try to load the file again.

DC
 
Back
Top Bottom