home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / programm / 19899 < prev    next >
Encoding:
Text File  |  1992-12-16  |  2.2 KB  |  46 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!spool.mu.edu!agate!apple!mumbo.apple.com!gallant.apple.com!NewsWatcher!user
  3. From: REEKES@applelink.apple.com (Jim Reekes)
  4. Subject: Re: SPBSetDeviceInfo doesn't like me! -- help!
  5. Sender: news@gallant.apple.com
  6. Message-ID: <REEKES-161292005238@90.10.20.67>
  7. Date: Wed, 16 Dec 1992 08:50:13 GMT
  8. References: <shh23#-@rpi.edu>
  9. Organization: Apple Computer, Inc.
  10. Followup-To: comp.sys.mac.programmer
  11. Lines: 33
  12.  
  13. In article <shh23#-@rpi.edu>, simsh@crockett1c.its.rpi.edu (Big Guy) wrote:
  14. > Hi, I am trying to write a small app to turn on and off the sound play
  15. > through on my IIsi. I have a problem with this line:
  16. >    if (SPBSetDeviceInfo(myRefNum,siPlayThruOnOff,(Ptr)&volume))
  17. >    {
  18. >        SysBeep(1);
  19. >        ExitToShell();
  20. >    }
  21. > Problem is, everything is set up right, volume has a value -- 3, and the open
  22. > device command works. However, when it hits this line, it doesn't give an error
  23. > and it seems to work fine, except that the sound play through is not turned
  24. > on! I debugged it in THINK C, and everything seemingly worked fine, except that
  25. > sound didn't turn on. I have used this code in another app where it worked
  26. > fine, but that was a much bigger app, so my question is: which manager perhaps
  27. > do I need to initialize? That seems to be the only reason I can think of why
  28. > it won't work, but I can't figure out what needs to be initialized to make it
  29. > work, nor can I find anything in IM 6 about it. Please e-mail me directly, I
  30. > won't be able to read this group too readily for a while. Thanks for all help!
  31.  
  32. Depending on which system you're running, you may need to actually start
  33. recording something before the play through mode will be activated. This
  34. was due to a changed made in the hardware/ROMs. Try turning on level
  35. metering.
  36.  
  37. -----------------------------------------------------------------------
  38. Jim Reekes, Polterzeitgeist  |     Macintosh Toolbox Engineering
  39.                              |          Sound Manager Expert
  40. Apple Computer, Inc.         | "All opinions expressed are mine, and do
  41. 20525 Mariani Ave. MS: 81-KS |   not necessarily represent those of my
  42. Cupertino, CA 95014          |       employer, Apple Computer Inc."
  43.