home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!usc!rpi!simsh
- From: simsh@crockett1c.its.rpi.edu (Big Guy)
- Subject: SPBSetDeviceInfo doesn't like me! -- help!
- Message-ID: <shh23#-@rpi.edu>
- Nntp-Posting-Host: crockett1c.its.rpi.edu
- Date: Sun, 13 Dec 1992 03:45:57 GMT
- Lines: 23
-
- Hi, I am trying to write a small app to turn on and off the sound play
- through on my IIsi. I have a problem with this line:
-
- if (SPBSetDeviceInfo(myRefNum,siPlayThruOnOff,(Ptr)&volume))
- {
- SysBeep(1);
- ExitToShell();
- }
-
- Problem is, everything is set up right, volume has a value -- 3, and the open
- device command works. However, when it hits this line, it doesn't give an error
- and it seems to work fine, except that the sound play through is not turned
- on! I debugged it in THINK C, and everything seemingly worked fine, except that
- sound didn't turn on. I have used this code in another app where it worked
- fine, but that was a much bigger app, so my question is: which manager perhaps
- do I need to initialize? That seems to be the only reason I can think of why
- it won't work, but I can't figure out what needs to be initialized to make it
- work, nor can I find anything in IM 6 about it. Please e-mail me directly, I
- won't be able to read this group too readily for a while. Thanks for all help!
-
- --
- Hillel Sims Rensselaer Polytechnic Institute e-mail: simsh@rpi.edu
-
-