|
Chris Widget
Widget Isles @ the Edge!
Join date: 22 Jan 2006
Posts: 67
|
04-04-2006 18:17
I have been playing around with sounds and I can get them to play and loop but at the end of each loop there is this deadspce then the loop starts over again. It is only about a second but it is noticable. Any idea how to end the dead space ? Here is the script I borrowed:
string soundFileName = "WI_STREAM"; // Change this to the name of the sound clip float volume = 3.0; // Change this to the volume the clip will play at
default { state_entry() { llLoopSound(soundFileName, volume); }
touch_start(integer num) { state off; } }
state off { state_entry() { llStopSound(); }
touch_start(integer num) { state default; } }
_____________________
--- Chris Widget Non
|
|
Gattz Gilman
Banned from RealLife :/
Join date: 29 Feb 2004
Posts: 316
|
04-05-2006 07:07
if tested the script, and works fine for me. Chances are it might be your sound file that has some dead air near the end. here is your same code, but i put in a sound file of running water so you can see it loops seamlessly. string soundFileName = "b81b5a28-e329-3a83-6e17-f83caef20b42"; // Change this to the name of the sound clip float volume = 3.0; // Change this to the volume the clip will play at default { state_entry() { llLoopSound(soundFileName, volume); } touch_start(integer num) { state off; } } state off { state_entry() { llStopSound(); } touch_start(integer num) { state default; } }
|