|
Post by Le Ray [Q2C] on Sept 22, 2004 9:32:55 GMT -5
I've got something really strange going on....
I'm linking a sound to trigger when a button is activated. I want the sound, which is an alarm to the entire level, to shut off after the button returns to normal position.
I used one alarm sound and it seems to work fine. I activate the button and the alarm sounds (level wide) then after 5 seconds the alarm goes off, which is what I want.
However, if I just change the alarm to another wav file, the sound doesn't shut off after the button is activated.
Why is this happening? Why would only switching to a different wav file make this happen?
Does anyone know how I can shut off this alarm after a few seconds and reset with the button?
|
|
HLR
ShotGun Guard
Posts: 83
|
Post by HLR on Sept 22, 2004 23:18:42 GMT -5
I've heard talk here and there about "loop points" in wav files that Q2 uses. I don't have a clue how they're implemented though. There's no loop-point paramater for PCM audio in the RIFF WAV specification (that's what Q2 uses as far as I know) so whatever it is it must be non-standard. I don't recall ever seeing any information on it on any sites anywhere. Somebody familiar with the Q2 source should probably dig around and find out what the deal is.
Edit: Oh, to answer your other question, try setting the target_speaker(s) to looped_off, have a trigger_relay turn it on, and a second trigger_relay with a delay on it turn it off.
|
|
|
Post by Le Ray [Q2C] on Sept 23, 2004 5:55:24 GMT -5
Thanks for the help HLR... I'll try that out.
|
|
|
Post by Le Ray [Q2C] on Sept 23, 2004 8:34:50 GMT -5
SWEET Oh man.....wait till you guys see this... It works great HLR, thanks for the help!
|
|