home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!think.com!rpi!bu.edu!dartvax!kip-sn-20.dartmouth.edu!bryan.y.lee
- From: bryan.y.lee@dartmouth.edu (Bryan Lee)
- Newsgroups: comp.sys.mac.programmer
- Subject: Novice programmer seeks help with Sound Manager
- Message-ID: <C1CEK3.7Gt@dartvax.dartmouth.edu>
- Date: 24 Jan 93 05:14:25 GMT
- Sender: news@dartvax.dartmouth.edu (The News Manager)
- Organization: Dartmouth College, Hanover, NH
- Lines: 25
- X-Xxmessage-Id: <A7878F7F3C015014@kip-sn-20.dartmouth.edu>
- X-Xxdate: Sun, 24 Jan 93 05:12:47 GMT
- X-Useragent: Nuntius v1.1.1d16
-
- Well, this is my first time posting to this group, so here goes,
-
- I've read about the sound manager, and have read a few example routines
- that play sound, using the sound manager. I figured out how to make new
- channels, and use sndPlay on 'snd ' resources. No sweat. However, I still
- don't understand how to use type 2 'snd ' files. I have read Inside
- Macintosh 5 about these resource types, but still haven't had any luck
- with them.
- I do the following (simplified a little):
- SndNewChannel(&my_chan, sampledSynth, 0, NULL);
- SndPlay(my_chan, my_type2snd, 1);
- SndDoCommand(my_chan, my_command, 0);
-
- In this case, "my_command" = noteCmd; <==Does this command do anything or
- what?
-
- I thought it would be neat to be able to play my own melodies using the
- sounds from these type2 resources, but when I try to play a note using
- noteCmd, only silence plays for the duration of the note. Am I totally
- off base, or is there something simple I am missing? Maybe there is a FAQ
- that has this somewhere?
-
- Anyone care to reply?
-
- Bryan Lee
-