Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008275opensim[REGION] Script Functionspublic2017-12-26 03:402018-01-08 10:51
Assigned To 
PlatformPCOSWindowsOS Version10
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0008275: [FEATURE REQUEST] llStopSound has no effect on llPlaySound or llTriggerSound etc ...
DescriptionllStopSound has no effect on llPlaySound, llTriggerSound, LlTriggerSoundLimited etc ...

This is really limited!

I think it would be nice if llStopSound also stop the sound for llPlaySound, llTriggerSound, etc. and not just for llLoopSound.

Indeed, sometimes we need to stop a sound immediately and we have no way to do it now. It is very frustrating!

If you do not want to implement it in an LSL function, you might want to do it with a new OSSL function ...

The sound module in opensim is already so poor :(((
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (Multiple Regions per Sim)
Physics EngineubODE
Environment.NET / Windows64
Mono VersionNone
Attached Files

- Relationships

-  Notes
UbitUmarov (administrator)
2018-01-05 02:49

don't think this can work on current viewers :(
djphil (reporter)
2018-01-05 03:55

llStopSound works with llLoopSound so it should not be the end of the world to make it work with other sound functions like llPlaySound, llTriggerSound, LlTriggerSoundLimited etc ...
FreakyTech (reporter)
2018-01-06 16:46
edited on: 2018-01-06 16:53

Actually llLoopSound and llStopSound use a completely different signaling.
The two functions configure a prim property.

The functions llPlaySound and llTriggerSound on use a different signaling that just triggers the sound.

llStopSound stops llLoopSound by actually changing a prim property.

llPlaySound has its own trigger message AttachedSound in viewer sim protocol.
llPlaySound has replace characteristics so a newly triggered attached sound replaces see [^]

Only, llPlaySound can get some stop semantics due to the possibility to change AttachedSound volume by message. However, it would just play to the end silently.

llTriggerSound has the message SoundTrigger in viewer sim protocol and is even unattached regarding prim which means the viewer even does not know where it belongs to. llTriggerSound triggered sounds are fully independent and have no replace semantics.

llTriggerSound cannot be stopped afterwards at all.

I am not sure if that is in working state in OpenSim but you can actually silence a llPlaySound by llAdjustSoundVolume.

djphil (reporter)
2018-01-08 10:51

Thank you FreakyTech for your detailed explanations.

Would not it be a good thing to make the necessary changes to make things better ... ?
It would then be possible to consider a "pause" sound for example.

These are still very basic things!

- Issue History
Date Modified Username Field Change
2017-12-26 03:40 djphil New Issue
2018-01-05 02:49 UbitUmarov Note Added: 0032490
2018-01-05 03:55 djphil Note Added: 0032492
2018-01-06 16:46 FreakyTech Note Added: 0032493
2018-01-06 16:47 FreakyTech Note Edited: 0032493 View Revisions
2018-01-06 16:53 FreakyTech Note Edited: 0032493 View Revisions
2018-01-08 10:51 djphil Note Added: 0032497

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker