home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!spool.mu.edu!agate!apple!mumbo.apple.com!gallant.apple.com!NewsWatcher!user
- From: REEKES@applelink.apple.com (Jim Reekes)
- Subject: Re: SPBSetDeviceInfo doesn't like me! -- help!
- Sender: news@gallant.apple.com
- Message-ID: <REEKES-161292005238@90.10.20.67>
- Date: Wed, 16 Dec 1992 08:50:13 GMT
- References: <shh23#-@rpi.edu>
- Organization: Apple Computer, Inc.
- Followup-To: comp.sys.mac.programmer
- Lines: 33
-
- In article <shh23#-@rpi.edu>, simsh@crockett1c.its.rpi.edu (Big Guy) wrote:
- >
- > 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!
-
- Depending on which system you're running, you may need to actually start
- recording something before the play through mode will be activated. This
- was due to a changed made in the hardware/ROMs. Try turning on level
- metering.
-
- -----------------------------------------------------------------------
- Jim Reekes, Polterzeitgeist | Macintosh Toolbox Engineering
- | Sound Manager Expert
- Apple Computer, Inc. | "All opinions expressed are mine, and do
- 20525 Mariani Ave. MS: 81-KS | not necessarily represent those of my
- Cupertino, CA 95014 | employer, Apple Computer Inc."
-