Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!midway!landau!hui From: hui@landau.uchicago.edu (Hui Dong) Newsgroups: comp.sys.mac.programmer Subject: play notes using 'snd ' resource Message-ID: <1991May24.053458.11198@midway.uchicago.edu> Date: 24 May 91 05:34:58 GMT Sender: news@midway.uchicago.edu (NewsMistress) Reply-To: hui@control.uchicago.edu Organization: The University of Chicago Lines: 10 I have been trying to play notes using recorded 'snd ' resource without success. What I do is first get a handle of the 'snd ' resouce: mysound, then pass **mysound as a param of soundCmd to channel 0L using SndDoCommand, then get noteCmd and pass them to channel 0L using SndDoCommand, and pass a restCmd to terminate the loop. No sound is generated, although I can hear the mysound using SndPlay. Should I create my own soundchannel to make it work? If that is the case, I don't know how to get the "init" parameter in SndNewChannel, which need to use SndControl routine to pass initCmd? Any help will be very appreciated.