[comp.sys.mac.programmer] Sound Driver vs. Sound Manager

mbabramowicz@amherst.bitnet (10/07/90)

Tech Notes really seem to discourage use of the Sound Driver, so I'd like to
include Sound Manager routines in a game that I've written. However, I don't
want to lose compatibility with old Macs and therefore want to have a simple
test to determine whether or not a given computer has Sound Manager
capabilities. What Mac type or system software versions will guarantee that the
Sound Manager is present?

mystone@mondo.engin.umich.edu (Dean Yu) (10/08/90)

In article <10539.270e4548@amherst.bitnet> mbabramowicz@amherst.bitnet writes:
>Tech Notes really seem to discourage use of the Sound Driver, so I'd like to
>include Sound Manager routines in a game that I've written. However, I don't
>want to lose compatibility with old Macs and therefore want to have a simple
>test to determine whether or not a given computer has Sound Manager
>capabilities. What Mac type or system software versions will guarantee that the
>Sound Manager is present?

  The Sound Manager is always available on the Mac II machines.  System 6.0x
supported it on machines with the 128K ROMs.  I don't think it works with
the really old Macs with the 64K ROMs, but since these haven't been supported
in a while, I wouldn't worry about it.

_______________________________________________________________________________
Dean Yu                            | E-mail:    mystone@mondo.engin.umich.edu
Patches 'R' Us                     | Real-mail: Dean Yu
A Division of Cyberite Systems     |            909 Church St Apt C
                                   |            Ann Arbor, MI 48104
  I speak for myself, so I'm not   | Phone:     313 662-4073
   going to disclaim anything.     |            313 662-4163
-------------------------------------------------------------------------------

russotto@eng.umd.edu (Matthew T. Russotto) (10/08/90)

In article <10539.270e4548@amherst.bitnet> mbabramowicz@amherst.bitnet writes:
>I don't
>want to lose compatibility with old Macs and therefore want to have a simple
>test to determine whether or not a given computer has Sound Manager
>capabilities.

Try testing for the existence of the _SndPlay trap.  If A805 (_SndPlay), and
A89F (_Unimplemented) go to the same address, _SndPlay isn't implemented
and the soundmanager isn't there.



--
Matthew T. Russotto	russotto@eng.umd.edu	russotto@wam.umd.edu
      .sig under construction, like the rest of this campus.

rad@genco.uucp (Bob Daniel) (10/09/90)

In article <10539.270e4548@amherst.bitnet> mbabramowicz@amherst.bitnet writes:
>Tech Notes really seem to discourage use of the Sound Driver, so I'd like to
>include Sound Manager routines in a game that I've written. However, I don't
>want to lose compatibility with old Macs and therefore want to have a simple
>test to determine whether or not a given computer has Sound Manager
>capabilities. What Mac type or system software versions will guarantee that the
>Sound Manager is present?

How about testing the version of system that is running?  I believe the Sound
Manager started in 6.0.  

lsr@Apple.COM (Larry Rosenstein) (10/10/90)

rad@genco.uucp (Bob Daniel) writes:

>How about testing the version of system that is running?  I believe the Sound
>Manager started in 6.0.  

The DTS SoundApp sample code tests for System 6.0.2 or later.
-- 
		 Larry Rosenstein,  Object Specialist
 Apple Computer, Inc.  20525 Mariani Ave, MS 3-PK  Cupertino, CA 95014
	    AppleLink:Rosenstein1    domain:lsr@Apple.COM
		UUCP:{sun,voder,nsc,decwrl}!apple!lsr

oster@well.sf.ca.us (David Phillip Oster) (10/10/90)

In article <10539.270e4548@amherst.bitnet> mbabramowicz@amherst.bitnet writes:
>I don't
>want to lose compatibility with old Macs and therefore want to have a simple
>test to determine whether or not a given computer has Sound Manager
>capabilities.

Be sure to read the caveats at the end of the new sound manager chapter.
Most of the sound manager doesn't work on the MacPlus, or the SE.
For instance, you  can't have four-voice sound, and I'm not to sure about
free-form waves. In addition, the MIDI sound Manager stuff is a joke,
which is why Apple came out with yet different MIDI support.
-- 
-- David Phillip Oster - Note new signature. Old one has gone Bye Bye.
-- oster@well.sf.ca.us = {backbone}!well!oster