Menu

#38 Playing sounds in LSL scripts doesn't work.

r15
closed
nobody
5
2008-09-24
2008-09-12
JukkaJ
No

Upload for example "C:\WINDOWS\Media\Recycle.wav" sound file to server.Create an object and attach the following script:
"
default
{
touch_start(int n)
{
llSay(0, "Script running");
llPlaySound("recycle", 1);
}
}
"

Touch the object.

The "Script running" text is seen, but sound is not played and no error message is shown.

Expected: The sound will play, or an error message is shown if the system cannot play back sounds.

Reproducibility: 10/10

Discussion

  • Mikko Pallari

    Mikko Pallari - 2008-09-17

    This bug seems to be server side bug: the script can't find the asset by it's name, but if it is replaced with the assets LLUUID, it plays.

     
  • Mikko Pallari

    Mikko Pallari - 2008-09-17

    Further more: server looks up for the sound only from prims own inventory by name. So if the sound is not set to inside prim, it won't play unless it is referenced with LLUUID.

    Fixed in SVN.

     
  • Lasse Öörni

    Lasse Öörni - 2008-09-24
    • status: open --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.