Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008305opensim[REGION] Script Functionspublic2018-03-19 09:322018-04-09 20:02
ReporterBob Wellman 
Assigned To 
PlatformOperating SystemOperating System Version
Product Version0.9.0 
Target VersionFixed in Version 
Summary0008305: [FEATURE REQUEST] add Sound commands for Linked prims
DescriptionParticles can be set for a prim the script is in using llParticleSystem and for any linked prim in a link-set using llLinkParticleSyetm. This is useful as I can use one script per object that decides which links should emit which particles.

The same flexibility would be useful for sounds but we have only commands that make sounds from the prim the sound script is in. It would be good if we could have link versions of all sound commands (e.g. osLinkLoopSound osLinkPlaySound etc.) to make scripting them easier and more efficient.
Additional InformationI assume they would work the same as the ll version but with addditional first parameter being Link number.

Most other properties of a prim that can be set using llSetPrimitiveParams can also be set for a particular link using llSetLinkParamativeParams. It seems like Sounds is the odd man out.
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (Multiple Regions per Sim)
Physics EngineBulletSim
Script Engine
Mono VersionNone
Attached Files

- Relationships

-  Notes
UbitUmarov (administrator)
2018-04-08 16:29

on branch httptests i added a few ossl functions:

osAdjustSoundVolume(LSL_Integer linknum, LSL_Float volume);
osLoopSound(LSL_Integer linknum, LSL_String sound, LSL_Float volume);
osLoopSoundMaster(LSL_Integer linknum, LSL_String sound, LSL_Float volume);
osLoopSoundSlave(LSL_Integer linknum, LSL_String sound, LSL_Float volume);
osPlaySound(LSL_Integer linknum, LSL_String sound, LSL_Float volume);
osPlaySoundSlave(LSL_Integer linknum, LSL_String sound, LSL_Float volume);
osPreloadSound(LSL_Integer linknum, LSL_String sound);
osSetSoundRadius(LSL_Integer linknum, LSL_Float radius);
osStopSound(LSL_Integer linknum);
osTriggerSound(LSL_Integer linknum, LSL_String sound, LSL_Float volume);

note that linknum must point to a single prim.
only LINK_ROOT and LINK_THIS will work, others relative to several prims will be silently ignored

root prim can be selected with LINK_ROOT, 0 or 1.

sorry, could not do much testing :(
UbitUmarov (administrator)
2018-04-08 16:32

above ignore the parts "LSL_" LSL_String means string, etc
UbitUmarov (administrator)
2018-04-08 16:34

as sugested they do work as the ll ones
llSet*PrimitiveParams is out for now..
UbitUmarov (administrator)
2018-04-09 20:02

also added osTriggerSoundLimited(integer linknum, string sound, float volume,
                 vector top_north_east, vector bottom_south_west);

- Issue History
Date Modified Username Field Change
2018-03-19 09:32 Bob Wellman New Issue
2018-04-08 05:50 Bob Wellman Additional Information Updated View Revisions
2018-04-08 16:29 UbitUmarov Note Added: 0032631
2018-04-08 16:32 UbitUmarov Note Added: 0032632
2018-04-08 16:34 UbitUmarov Note Added: 0032633
2018-04-09 20:02 UbitUmarov Note Added: 0032636

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker