[comp.sys.mac.programmer] Async sound ?

surshkmr@shade.Princeton.EDU (V.S. Suresh Kumar) (03/28/91)

 How can  I play sound asyncronoulsly ? I have a game that uses some
'snd ' resources, but each time I play them using PlaySnd(nil,
sndHandle, True), the program slows down enormously. In fact it does
nothing till it completes playing the sound. By the way, these 'snd ' 
resources are those that I created using the built in microphone on my
IIsi, edited with SoundEdit and pasted as resources in my resource
file.
Is there any way I could play these sounds in the background of my game
?

suresh
surshkmr@Phoenix.Princeton.EDU

Jim.Spencer@p510.f22.n282.z1.fidonet.org (Jim Spencer) (03/30/91)

V.s. Suresh Kumar writes in a message to All

VSK>  How can I play sound asyncronoulsly ? I have a game that uses 
VSK> some 'snd ' resources, but each time I play them using PlaySnd(nil, 
VSK> sndHandle, True), the program slows down enormously. In fact 
VSK> it does nothing till it completes playing the sound. By the way, 
VSK> these 'snd ' resources are those that I created using the built 
VSK> in microphone on my IIsi, edited with SoundEdit and pasted as 
VSK> resources in my resource file. Is there any way I could play 
VSK> these sounds in the background of my game ?

See the March MacTutor which has an article specifically on playing sounds asynchronously.