home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / programm / 22054 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  1.5 KB

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