One of the features I was looking forward to in 1.4 was the ability to limit sounds to a local lot. Its kind of like the "Cone of Silence" from the old "Get Smart" TV-series... No sounds from off the lot come in, and sounds from the lot don't go out.
The following code, which does the hourly playing of "Taps" at the Iraqi War Memorial worked fine in 1.3.x (so long as a listener's client wasn't filled with other audio downloads), but is horrid in 1.4. Some of the .WAV's don't get played at all, and there are noticable delays between clips.
state playing
{
state_entry()
{
gNumSounds = llGetListLength( TAPS_SOUNDS );
gSoundIndex = 0;
llPreloadSound( llList2String( TAPS_SOUNDS, 0 ) );
llSetTimerEvent( 9.0 );
}
timer()
{
llPlaySound( llList2String( TAPS_SOUNDS, gSoundIndex ), 1.0 );
gSoundIndex = gSoundIndex + 1;
if ( gSoundIndex < gNumSounds )
{
llPreloadSound( llList2String( TAPS_SOUNDS, gSoundIndex ) );
}
else
{
state waiting;
}
}
}
Am I being stupid here? Is anyone else having similar problems with 1.4?
- Ace