Project Moonlight III

So this week, after looking at HTTP Requests (I made a quick browser opening script because my project doesn’t need to store any data.)

string text = “transporting…”;

string url = “https://www.bbc.co.uk/”;

default

{

state_entry()

{

llSetText(“Click, and be transported! Yours Truly, the BBC.”, <1.0, 1.0, 1.0>, 1.0);

}

touch_start(integer num_detected)

{

llLoadURL(llDetectedKey(0), text, url); //Loads the URL

}

}

I continued the problem of queuing the sound files.

I appeared to find something which could have helped me, if they only didn’t have to use the sleep function to cause the next item to play. It seems also that they cannot play in a specific order, even when being ordered to do so.

This is the code that could help me, but I need it to clip them together seamlessly to create a melody, as having a 10 second break in between parts of Moonlight Sonata stop it from being such a dramatic and awesome piece of classical music.

list soundlist = ["9a6b7166-0eb5-8e61-d6a2-888cf6bd2c46"    ,    "632dd9c9-0a24-3acf-2df1-233675717fa6"    ,
                  "3c554abb-6c3c-a8b6-01e9-4a2b909b74f4"    ,    "47421b54-7114-f816-a05e-b79552f24184"    ,
                  "1ba27f6f-50eb-64f2-3171-0158b783e5b6"    ,    "81e26ae6-83ed-a88c-6d3f-dd2003058d7e"    ,
                  "b7045a20-ad0e-c083-a077-7a6e3048e638"    ,    "65f038c8-3284-a616-8817-e4f4c60be496"    ,
                  "194f1b76-bb9b-733c-3c81-ce6c83fcbd33"    ,    "2cf4add7-5317-8d66-4dbd-f902c1399597"    ,
                  "45e4ec4c-9215-3b96-72f7-673d4d817cc7"    ,    "98e8673a-b646-b2f5-dd27-0a394483fc88"    ,
                  "c96ea102-4d6e-57b2-61ce-4226fc4888d6"    ,    "2320f451-3ba9-7f03-cf15-20c14c16a232"    ,
                  "89f1244f-467d-e562-3cde-9dcff044b96c"    ,    "0c472a6d-2085-5f91-2262-cf2e585448d0"    ,
                  "9f4b90f1-3f3e-81a4-6fc2-1a39e1d2d2cc"    ,    "b61a7317-1c0c-e9ae-4bc0-077d40e1ea73"    ,
                  "01d82e0b-2dbb-3992-72f7-d4859427541c"    ,    "fb56b288-927d-75f9-26bb-8743f1fce736"    ,
                  "d157afac-9441-c060-aa91-2983ce56778f"    ,    "8d308920-73e2-c6d4-ae59-9762ac23815f"    ,
                  "ad189678-f343-295d-e5db-bea55b2ee7cf"    ,    "8a4be045-ed73-5f58-2c1e-d1ceb3146ead"    ,
                  "a7e62701-5787-3d1e-b156-de99671715ac"    ,    "4000333c-0c50-d528-63fd-a226894bbc58"    ,
                  "b43baabb-9b80-c938-ca5c-601f3bfd2b59"];

default
{
    state_entry()
    {
        integer all;
        integer listlong = llGetListLength(soundlist);
        do
        llPreloadSound(llList2Key(soundlist, all));
        while((++all)< listlong);
    }
    touch_start(integer detected)
    {
        if(llDetectedKey(0) == llGetOwner())
        {
            integer all;
            integer listlong = llGetListLength(soundlist);
            do
            {
                llPlaySound(llList2Key(soundlist, all), 1.0);
                llSleep(9.89);
            }
            while((++all)< listlong);
        }
    }
}

Seems other people are having the same irritation.

https://jira.secondlife.com/browse/SVC-1588

I’m starting to think this sound playing is more trouble than it’s worth.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: