I write software to facilitate my artwork and teaching. Some of those projects get cleaned up and released here as free Mac applications. Most are made with MAX and you can edit my included source files to add whatever features you want.
Attach a camera and trigger sounds whenever occupancy is detected in six user-defined areas of the video image. You have complete control over the playback logic and signal routing. Surround is supported.