Difference between revisions of "Talk:LlPlaySound"

From Second Life Wiki
Jump to navigation Jump to search
(Subsequent Calls)
 
 
Line 2: Line 2:


The old wiki said "A script can only have one sound playing using llPlaySound; subsequent calls will be ignored until the first sound has stopped playing".  But as far as I can tell that is just wrong; the second part, that is.  Subsequent calls aren't ignored; they cause the existing sound to be replaced by the new one (or if the new call uses the same sound, they cause the existing sound to start over again from the start).  Would it be a good idea to explicitly mention that in this article? [[User:Dale Innis|Dale Innis]] 17:20, 17 March 2011 (PDT)
The old wiki said "A script can only have one sound playing using llPlaySound; subsequent calls will be ignored until the first sound has stopped playing".  But as far as I can tell that is just wrong; the second part, that is.  Subsequent calls aren't ignored; they cause the existing sound to be replaced by the new one (or if the new call uses the same sound, they cause the existing sound to start over again from the start).  Would it be a good idea to explicitly mention that in this article? [[User:Dale Innis|Dale Innis]] 17:20, 17 March 2011 (PDT)
: That was the functionality of ye olde [[llSound]], now deprecated. Alternatively, it can be achieved with [[llSetSoundQueueing]] set to TRUE. (Both of these queue the sound until the first one has finished; there ''may'' have been a period where llPlaySound simply ignored new calls entirely, but it is long gone.) [[User:Nelson Jenkins|Nelson Jenkins]] 22:40, 14 February 2013 (PST)

Latest revision as of 23:40, 14 February 2013

Subsequent Calls

The old wiki said "A script can only have one sound playing using llPlaySound; subsequent calls will be ignored until the first sound has stopped playing". But as far as I can tell that is just wrong; the second part, that is. Subsequent calls aren't ignored; they cause the existing sound to be replaced by the new one (or if the new call uses the same sound, they cause the existing sound to start over again from the start). Would it be a good idea to explicitly mention that in this article? Dale Innis 17:20, 17 March 2011 (PDT)

That was the functionality of ye olde llSound, now deprecated. Alternatively, it can be achieved with llSetSoundQueueing set to TRUE. (Both of these queue the sound until the first one has finished; there may have been a period where llPlaySound simply ignored new calls entirely, but it is long gone.) Nelson Jenkins 22:40, 14 February 2013 (PST)