Jump to content
Sign in to follow this  
bigpickle

Environemnt Sounds

Recommended Posts

*Not a deliberate double post admins, I just realized I'd posted in the wrong sub-forum before. Sry

I'm trying to cfg patch the sound environments for maps but I'm having problems with my sound effects samples being cut short e.g MeadowNight1, they sound like they are faded out really fast halfway through being played.

The main sample is fine that plays fully without issue.

Do random samples have a sample length limit?

E.g of my code:

	class MeadowsNight
{
	sound[] = {"EasternEnvironments\Eastern\MeadowNight",1,1};
	volume = "(1-forest)*(1-houses)*night*(1-sea)";

	randSamp1[] = {"\EasternEnvironments\Eastern\Samples\MeadowNight\M  eadowNight1",5,1,250,0.15,8,15,20};
	randSamp2[] = {"\EasternEnvironments\Eastern\Samples\MeadowNight\M  eadowNight2",5,1,300,0.15,8,15,200};
	randSamp3[] = {"\EasternEnvironments\Eastern\Samples\MeadowNight\M  eadowNight3",5,1,25,0.15,15,30,40};
	randSamp4[] = {"\EasternEnvironments\Eastern\Samples\MeadowNight\M  eadowNight4",5,1,450,0.15,15,30,40};
	randSamp5[] = {"\EasternEnvironments\Eastern\Samples\MeadowNight\M  eadowNight5",5,1,50,0.1,8,15,20};

	random[] = {"randSamp1","randSamp2","randSamp3","randSamp4","randSamp5"};
};

http://www.youtube.com/watch?v=T4eKpQHnr84&feature=youtu.be

I read this :

RandSamp[] = {"SampleName",VOLUME, PITCH, DISTANCE, PROBABILLITY, Min DELAY, Mid DELAY, Max DELAY}

I cant find an explanation what the Min/Mid/Max bit do so I'm not sure what would be fading my sound effect samples so abruptly before they are finished.

Any ideas?

Edited by Bigpickle

Share this post


Link to post
Share on other sites

I found that randsamp truncation occurs over a certain total number of samples. Here are my tests for a variety of audio flavours:

Randsamp works properly:

wav 22050 16bit 4.339s long

wav 22050 16bit 5.000s long

Randsamp truncates:

wav 48000 24bit 4.339s long

wav 48000 24bit 5.000s long

wav 22050 16bit 8.678s long

wav 22050 16bit 7.000s long

wav 22050 16bit 6.000s long

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×