From: Roy C. Crisman
Uh...just look at the count() of the playList?
Just tested...
on soundStuff
repeat with i = 1 to 50
sound(5).queue(member "The Microsoft Sound")
end repeat
end
then, in the message window...
------------------
soundstuff()
sound(5).play()
put sound(5).isbusy()
-- 1
put sound(5).getplaylist().count
--50
put sound(5).getplaylist().count
--46
put sound(5).getplaylist().count
--45
put sound(5).getplaylist().count
--45
put sound(5).getplaylist().count
--44
Just check the .count of the playlist (which is a QUEUE, so as each sound is
finished, it is taken out of the queue, as opposed to a 'track list' which
doesn't change as you play along. Check it on exitFrame or what have you
and have the things you want to react with the music to respond to that
.count.
roymeo
"Michael Nadel" <[EMAIL PROTECTED]> on 06/14/2001 04:55:51 AM
Please respond to [EMAIL PROTECTED]
To: "HandyMan" <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
cc: (bcc: Roy C. Crisman/903939/EKC)
Subject: <lingo-l> please help!
Somebody PLEASE help me. This is the third time I'm posting this question.
Two nice people already gave me some interesting ideas, but unfortunately
they both turned out not to work. The question is very simple. Is there ANY
WAY to execute a handler each time a sound plays - in a list of queued
sounds?
I have 32 sounds queued at once, and I want something to light up each time
one of the 32 sounds begin. How do I know when a sound begins, in a queued
list of sounds, as it plays?
(I've tried cue-points, but there's a bug with cue-points in Director 8, as
well as Director 8.5 in run-mode).
Help!!
Michael Nadel
[EMAIL PROTECTED]
Mediart - Multimedia as an Art For
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]