Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Local Sound

Taimaru Hak
Registered User
Join date: 12 May 2008
Posts: 49
06-02-2008 07:27
Hi, new here :).

Is it possible using one of the sound functions to play sound locally and NOT in-world? I want to play a sound that only I can hear and not disturb anyone else around me. I know I can play a sound with a small sound radius but I'm not sure if that would be sufficient especially if I want the sound to be loud(ish).

Thanks.
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
06-02-2008 07:30
I guess if you play it from an object attached to the HUD, it will be local. I am not sure, try it
_____________________
From Studio Dora
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
06-02-2008 07:51
Using ParcelMediaCommandList, you can provide an Agent's ID (yours for example). The media will be played for this Agent only:

(PARCEL_MEDIA_COMMAND_AGENT)

llParcelMediaCommandList( [
PARCEL_MEDIA_COMMAND_URL, "http://enter_your.url/here",
PARCEL_MEDIA_COMMAND_TEXTURE, (key) llGetTexture(0)
PARCEL_MEDIA_COMMAND_AGENT, llDetectedKey(0),
PARCEL_MEDIA_COMMAND_TIME, START_TIME,
PARCEL_MEDIA_COMMAND_PLAY ] );

HTH
Taimaru Hak
Registered User
Join date: 12 May 2008
Posts: 49
06-02-2008 08:10
Thanks Dora and Haruki, both methods will work for what I want.

I'm not sure why I missed the documentation which says that sound played from a HUD will be local (using llPlaySound) unless you use llTriggerSound. (Note to self - must not rely on reading the Wiki when tired due to lack of sleep - lol).