
Prototype: GemRB.PlaySound(SoundResource, xpos, ypos, type)

Description: Plays a Sound. If there is a single PC selected, then it will play the sound as if it was said by that PC (EAX).

Parameters: a .wav resref (the format could be raw pcm, wavc or ogg; 8/16 bit; mono/stereo). Use the None python object to simply stop the previous sound.
            x coordinate of the position where the sound should be played (optional)
            y coordinate of the position where the sound should be played (optional)
            type - defaults to 1, use 4 for speeches or other sounds that should stop the previous sounds (optional)

Return value: N/A

See also: LoadMusicPL


MD5: 7370df8f931c57fc8317ca7472ea612e
