I read somewhere that since version 1.4 that there seems to be problems with playing sound in scripts. I maybe running into one of those problems. Maybe someone could help me with this.
I have a clock I'm working on. I have all the code working but one part. It currently plays one sound file at each quarter. Meaning for those who don't know. It chimes at every quarter hour. But the clock I am modeling it after, also chimes out the hour. I am having trouble playing the same sound file, over and over in a dowhile loop.
I have a integer variable holding the current hour. I called it count. When the minute hits 0, top of the hour, it starts this do while loop using the count variable I created.
The first thing I noticed was at 5 SL time it only chimed twice. I thought somehow I didn't make the variable correctly and the floating point hour wasn't being changed into an integer properly. So, to test that aspect out I added a llSay to say "CHIME" each time the chime should ring. Guess what! The loop was working properly. I forced the chime to ring out the 5 O'clock hour at several mins past 5. In other words, it was 10 past 5, but I had it ring out the 5th hour for me. It did write "CHIME" into the chat window 5 times.
I used llPlaysound in the loop in the same place I used the llSay command to say "CHIME" five times. I used llPlaySound in conjunction with a llSleep command and it helped a little, but didn't fix it. I also try setting the sound queue on, but it seemed to make no difference.
I would put my code in here, but the SL grid is down at the moment, and I was hoping for help so I could fix this as soon as it came back up.
Here in the North East part of the US, SL is down during my part of the day. I'm home from Dialysis today, and with the time difference, SL is down between 9 am and 3 pm. God I'm board right now.
-Inu-