Path: utzoo!utgpu!news-server.csri.toronto.edu!turing.toronto.edu!west Newsgroups: comp.sys.mac.programmer From: west@turing.toronto.edu (Tom West) Subject: Problem with Sound Manager Message-ID: <1990Dec6.120506.11284@jarvis.csri.toronto.edu> Organization: CSRI, University of Toronto Date: 6 Dec 90 17:05:07 GMT Lines: 39 I have a problem with the Sound Manager. I can make it do ordinal notes without any problem. However, when I try and make it play a frequency, it play nothing. The following code plays nothing: /* Play Middle A (440Hz) for 1 second */ SoundChannelPtr channel = NIL; SndCommand cmd; cmd.cmd = noteCmd; cmd.param1 = 2000; cmd.param2 = 0xFF000000 + (440 * 256); (void) SndNewChannel (&channel, noteSynth, 0, (SndCallBackProcPtr) NULL); (void) SndDoCommand (channel, &cmd, false); (void) SndDisposeChannel (channel, false); But the following commands plays a note: /* Play Middle C for 1 second) */ SoundChannelPtr channel = NIL; SndCommand cmd; cmd.cmd = noteCmd; cmd.param1 = 2000; cmd.param2 = 0xFF000000 + 60; (void) SndNewChannel (&channel, noteSynth, 0, (SndCallBackProcPtr) NULL); (void) SndDoCommand (channel, &cmd, false); (void) SndDisposeChannel (channel, false); Any advice or help would be greatly appreciated. Thanks in advance. Tom West west@turing.toronto.edu tomwest@gpu.utcs.utoronto.ca west@hsa.on.ca