Hello,
I previously wrote a topic as sort to understand how to detect motion coming from a webcam and play in consequence a soundfile. I wanted to play that sound and not to break its reading until its finished.
I got an good answer here :
http://puredata.hurleur.com/sujet-1486-webcam-detection-play-sound-entirely
Now, I have a more complicated issue.
Imagine we have four people coming in a room. Each time somebody is passing the door, then a sound is red. If these four individuals entered the room too fast, then the soundfile would be re-played several times in a short time and we couldn't hear it entirely. That's why I'll use a spigot connected to a delay box (answer given above).
However, imagine these four people come in the room close together. They'd hear a single sound until it ends. After, there would be nothing unless that a new person would come into the room or quite these people get out the room.
To be more simple, the idea is that everyone has a sound given. If 10 individuals are coming, then it'll have 10 sounds played following each.
Please, would you have any advice to give me as sort to stock, keep numbers of entries in the room and then when a sound is finished run the next one ?
Many thanks !