|
|
Re: sound_vol problems
[Re: ventilator]
#21209
12/16/03 10:46
12/16/03 10:46
|
Joined: Jun 2002
Posts: 3,682 Coppell, Texas
Ran Man
Expert
|
Expert
Joined: Jun 2002
Posts: 3,682
Coppell, Texas
|
I use sound_vol like this in a panel Code:
hslider 335,274,70,slider_map,0,100,sound_vol; // display the slider Anyways, I'm confused... If you set sound_vol to 0, then play ent_playloop like your code shows below, then you should not hear anything, right?  Anyways, I don't use sound_vol anywhere in my game, except for that volume control slider that is on my sound menu.
|
|
|
Re: sound_vol problems
[Re: Ran Man]
#21210
12/16/03 10:49
12/16/03 10:49
|
Joined: May 2002
Posts: 7,441
ventilator
OP
Senior Expert
|
OP
Senior Expert
Joined: May 2002
Posts: 7,441
|
Quote:
Anyways, I'm confused... If you set sound_vol to 0, then play ent_playloop like your code shows below, then you should not hear anything, right?
yes, right! but i hear something! 
sound_vol doesn't work at all for me!
|
|
|
Re: sound_vol problems
[Re: ventilator]
#21211
12/16/03 10:59
12/16/03 10:59
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
Maybe you can try this: (?) Code:
sound snd_test = <soundtest.wav>;
function example { snd_text = sound_vol=0; ent_playloop(my,snd_test,500); sleep(1); snd_test = sound_vol=100; }
|
|
|
Re: sound_vol problems
#21212
12/16/03 12:15
12/16/03 12:15
|
Joined: Jun 2002
Posts: 3,682 Coppell, Texas
Ran Man
Expert
|
Expert
Joined: Jun 2002
Posts: 3,682
Coppell, Texas
|
Quote:
sound_vol doesn't work at all for me!
Hmmnn... I don't get it... Well let's get back to basics...
So, here as a quick test I just started a level, then when I walk I can hear the player walking... you know... ta, ta, ta...
Anyways, then I press the tab key, then the debug thing starts up, then I typed in this:
SOUND_VOL=0 <hit return>
Anyways, after I did this, then I could not hear the player walking anymore. Until I typed in the following: SOUND_VOL=100 <hit return>
Anyways, Are you able to duplicate this???
|
|
|
Re: sound_vol problems
[Re: Ran Man]
#21215
12/17/03 12:57
12/17/03 12:57
|
Joined: Jun 2002
Posts: 3,682 Coppell, Texas
Ran Man
Expert
|
Expert
Joined: Jun 2002
Posts: 3,682
Coppell, Texas
|
Okay, so I can duplicate what you experience here.
So it seems that we should never set the sound_vol engine variable to zero, before a sound command, because nothing will be heard...
sound_vol=0; // DON'T DO THIS!!!
ent_playloop(my,snd_test,500);
Why do that anyways? snd_loop and ent_playsound all have their own independant volume variables.
snd_loop (sound, var volume , var balance);
I only use sound_vol on my sound menu, so that the player can control the sound volumes in the game. After that, I never use it again, because there is no need for it.
Last edited by Ran Man; 12/17/03 12:58.
|
|
|
|