Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007186opensim[REGION] Scripting Enginepublic2014-05-23 09:532015-10-18 09:07
Assigned To 
PlatformOSOS Version
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0007186: Looping Sounds Stops
DescriptionThe sounds inside a prim stops looping when you make a change to the script thats looping the sound. In normal cases the changes should take effect immediatly aft rthe changes were made but instead the sound stops looping when it should be looping once more with the new changes
Steps To ReproduceCreate this script
default {
    state_entry() {
        llLoopSound( llGetInventoryName( INVENTORY_SOUND,0 ), 0.5 );

//toss a sound inside a prim and then it will loop then after that change the 0.5 at the end of script to maby 1.0 and save script the sound will now cease to loop when it should be looping at its max volume now the only way to get it back is to restart sim.
TagsNo tags attached.
Git Revision or version number
Run ModeStandalone (1 Region)
Physics EngineBulletSim
Script Engine
EnvironmentMono / Windows
Mono VersionNone
Attached Files

- Relationships
has duplicate 0007616new Sound playing in object stops and does not restart when a parameter is changed 
related to 0007193new llLoopSound breaks, when called more than one time 

-  Notes
djphil (reporter)
2014-05-28 03:06

I would also like to mention another problem with loopsound.
If you put a music loop (eg: techno loop) in a moving object (eg: RoolerCoaster), the tempo of the loop (bpm) is not met, it varies speed.
aiaustin (developer)
2015-06-17 01:25
edited on: 2015-06-17 01:25

Still present in r/26082.

The sound stops when (for example) the volume parameter is changed and the script saved and reset, but I found relogging as a user brought the sound back, rather than needing to restart the sim.

cuteulala (reporter)
2015-06-17 04:52

LOL! i like it when sound tempo speeds up or slow down depending lolol but yes this issue can be anoying the only solution is to restart the sim :(
mewtwo0641 (reporter)
2015-07-09 03:02

I have seen this for a while. I've personally found that "kick starting" the sound produces a loop that works properly (Well it loops anyway :P)


string sound = "sound_here";

float volume = 0.3;

loopSound(string s, float v)
    //Stop any sounds playing first
    //Get the sound playing
    llPlaySound(s, v);
    llPlaySound(s, v);
    llPlaySound(s, v);
    llPlaySound(s, v);
    //Now loop it
    llLoopSound(s, v);

        loopSound(sound, volume);


It's definitely not an elegant workaround but it seems to work for me.
UbitUmarov (administrator)
2015-10-18 09:07

"sound tempo" is not a simulator issue. just viewer ideia of doppler effect I guess..

- Issue History
Date Modified Username Field Change
2014-05-23 09:53 cuteulala New Issue
2014-05-28 02:13 danbanner Relationship added related to 0007193
2014-05-28 03:06 djphil Note Added: 0026200
2015-06-17 01:23 aiaustin Relationship added has duplicate 0007616
2015-06-17 01:25 aiaustin Note Added: 0028733
2015-06-17 01:25 aiaustin Note Edited: 0028733 View Revisions
2015-06-17 04:52 cuteulala Note Added: 0028734
2015-07-09 03:02 mewtwo0641 Note Added: 0028885
2015-10-18 09:07 UbitUmarov Note Added: 0029514

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker