[comp.sys.mac.programmer] interrupting snd resources

ramaley@csli.Stanford.EDU (Alan Ramaley) (07/19/90)

Hi folks.  How can you have sounds running in the background?  I'm
working on a text editor with a friend, and we want it to make a
clicking noise when a person is typing.  We want to use a snd
resource, and call sndPlay, from the sound manager, since that seems
easiest.  But when you call sndPlay, it rattles on until the sound
finishes.  I know there must be a way to say, "okay, play this
resource, but if you get signal X, stop playing".  Does anyone have
any clues?  We're using Think C 4.0, if that's important.  I imagine
we're being too high level about things, but we can't figure out the
low-level documentation.

							--Alan