| Sound streamer | |
| To prepare and import your own sounds,
see: Audacity 101 To find sounds on the web: FindSounds |
|
| Thinkerer Studios (Go there) |
| Sound Streamer. Plays all sounds in the contents, in sequence. All sounds must be of 9 second length to get smooth streaming. | |
|
integer Scount; string soundname; //Reset this script whenever you change the number of sounds in the contents |
Global variables |
| default { | |
|
touch_start(integer total_num) {llGiveInventory(llDetectedKey(0),llGetInventoryName(INVENTORY_NOTECARD, 0)); |
On Touch, give top notecard in contents |
|
integer Scount=llGetInventoryNumber(INVENTORY_SOUND); integer c=0; integer x=Scount; for (c = 0 ; c <= (x - 1) ; c++) { llPreloadSound(llGetInventoryName(INVENTORY_SOUND, c)); } |
Preload sounds. |
|
llSetSoundQueueing(TRUE); |
Sound queuing works with
llPlaySound, but not with llTriggerSound llSleep delays the script to allow to sound to play.
Default close |
| llGiveInventory(llDetectedKey(0),llGetInventoryName(INVENTORY_OBJECT, 0)); | Insert this line just after the touch start to give the first object in contents. |
|
The Thinkerer
05/09/2008 Copyright (c) D. F. Dansereau & S. H. Evans |
LODScr | ||
| Famous fables | |||