Posted by CogKing on January 02, 1998 at 01:37:05:
In Reply to: globalsound posted by Magi on January 02, 1998 at 00:50:05:
> I'm trying to play a wav file globaly.
> Does anyone know what the parameters for the playsoundglobal() command are?
You should use PlaySoundLocal() if it is for 1 player only, or in single player.
PlaySoundGlobal() plays the sound for every player in a network game...
Anyway, the parameters are :
PlaySoundLocal(sound, volume, balance, flags);
sound is a sound variable
volume is from 0.0 to 1.0
balance is the left/right panning of the sound from -1.0 to 1.0, with 0.0 as center.
flags is exactly as in the other sound functions (1 is loop for instance)
Hope this helps.
-CogKing