Sound not playing...
Post Reply
Quote
Re: Sound not playing...
Posted by Sub-Zero on Sat Feb 19th at 10:14am 2005


This might be a simple question.. but i have been going crazy over it for quite a while.. along with some other problems.. anyways...

Right now i have an outside spawn area with a box that is set as a trigger... i have an ambient generic setting up the sound.. and it plays it when i spawn.. and when i leave the spawn area and the trigger box it turns off... BUT.... when i go back in the trigger area it doesnt play again.... also when i go into another area with a new trigger and a different sound.. it doesnt even play...

so right now.. i have one sound playing once.. and then when i leave it doesnt play again...

what i want is 2 seperate sounds triggered when i walk in a certain area....

if anyone has any ideas or suggestions please let me know! Thanks in advance

Sub-Zero





Quote
Re: Sound not playing...
Posted by Agent Smith on Sat Feb 19th at 2:25pm 2005


Perhaps your trigger entities are trigger_once instead of trigger_multiple. That would be the cause of the first problem I'd guess. Not sure on the other.

[addsig]




Quote
Re: Sound not playing...
Posted by Sub-Zero on Mon Feb 21st at 2:49pm 2005


Ok i will try the trigger multiple... but ur not sure what is causing the other problem?



Quote
Re: Sound not playing...
Posted by $loth on Mon Feb 21st at 2:52pm 2005


Check the flags area and see if there is a flag which says play once or something.
[addsig]




Quote
Re: Sound not playing...
Posted by Sub-Zero on Sun Feb 27th at 7:13pm 2005


well.. i fixed the first problem.. i got the sound to replay... now how would i go about adding another sound (repeating background noise) to one cavern... and then a repeating background noise to the rest of the map?

if anyone has any ideas i would appreciate it! =P





Quote
Re: Sound not playing...
Posted by Natus on Sun Feb 27th at 7:35pm 2005


im not sure but you could place an ambient_generic in that cavern an then move the circle around it untill it fits the cavern
[addsig]




Quote
Re: Sound not playing...
Posted by Sub-Zero on Mon Feb 28th at 12:18am 2005


well from what ive tried so far it doesnt work... i hear the first sound fine.. but when i go into that second room.. no sound exists... =(



Quote
Re: Sound not playing...
Posted by Sub-Zero on Tue Mar 1st at 3:54am 2005


ok... i still dont have a second sound.. just the first sound in the one room....

what im looking to do is have different background sounds in different rooms.... is there an easy way to do this.. that perhaps i dont understand? anyone with an idea?





Quote
Re: Sound not playing...
Posted by LIVEWIRE898 on Wed Mar 2nd at 4:05pm 2005


Are any of the sounds that you are using for you map a custom sound?

If so or even if they are not you might want to check out if the the sound file is loopable. To do this open the file in a sound editor (I used adobe Audition) and look at the properties of the file. I used a cricket sound in my map as a custom sound and had to change these properties to get the sound to loop. I changed the properties to loop. Then as an ambient_generic i set the flag to loop. This worked out fine for my purposes. Not sure if its going to work for you... if the sound file is one already in HL2 you might want to extract the file and rename it with an _loop in the file name (just to clarify the difference in the 2 files) and check the properties to make sure it is loopable... for some reason source needs this property checked in order to properly loop a sound file.

hope this helps out!!





Quote
Re: Sound not playing...
Posted by ReNo on Wed Mar 2nd at 4:15pm 2005


I've had some problems with ambient_generics not playing despite being set up fine, and have found that using soundscapes is far more reliable where they are suitable. For something like a constant caverny noise and echo, a soundscape is perfect. There is documentation about using them in the Source SDK FAQ, so I won't bother explaining them here. To test out the various soundscapes to find out which one you want to use, load up your map, turn on cheats (sv_cheats 1), and use the "find soundscape" command to have the console tell you the various soundscape testing commands you have available.
[addsig]




Quote
Re: Sound not playing...
Posted by Sub-Zero on Wed Mar 2nd at 6:12pm 2005


oki doki reno.. im going through map fps loss right now.. as soon as im done figuring that out.. next challenge is sound ... thanks u guys =P

....hopefully the source sdk info isnt too confusing..






Post Reply