PlaySoundFlag
Constants in the PlaySoundFlag flag set. These are flags and can be combined with bitwise OR.
integer SOUND_LOOP = 0x01; // Sound playback option that loops the sound continuously on the prim until stopped.integer SOUND_PLAY = 0x00; // Sound playback option (default) that plays the sound once, attached to the prim.integer SOUND_SYNC = 0x04; // Sound playback option that synchronizes playback to the nearest active sound master (see llLoopSoundMaster).integer SOUND_TRIGGER = 0x02; // Sound playback option that triggers a non-attached sound once at the prim's current location (does not move with the prim).
Constants
| Constant | Type | Value | Description |
|---|---|---|---|
SOUND_LOOP | integer | 0x01 | Sound playback option that loops the sound continuously on the prim until stopped. |
SOUND_PLAY | integer | 0x00 | Sound playback option (default) that plays the sound once, attached to the prim. |
SOUND_SYNC | integer | 0x04 | Sound playback option that synchronizes playback to the nearest active sound master (see llLoopSoundMaster). |
SOUND_TRIGGER | integer | 0x02 | Sound playback option that triggers a non-attached sound once at the prim's current location (does not move with the prim). This flag overrides all other sound playback options. |
Used by
llLinkPlaySoundfunctionPlays the specified sound on the linked prim link (once or looping) at volume. Only one sound can be attached to a prim at a time; new attachments or calling llStopSound stops previous playback. Controlled by flags.