Apparently-To: john.smith@gravis.com


GUS Programmer's Digest     Tue, 19 Oct 93  0:07 MDT     Volume 5: Issue  15  

Today's Topics:
             Getting the sdk to work with borland c++ 3.1
              Sample Control Register & Half-way Support

Standard Info:
	- Meta-info about the GUS can be found at the end of the Digest.
	- Before you ask a question, please READ THE FAQ.

----------------------------------------------------------------------

Date: Mon, 18 Oct 1993 15:21:11 -0400
From: davidm@marcam.com (David MacMahon)
Subject: Getting the sdk to work with borland c++ 3.1

>Date: Fri, 15 Oct 1993 10:56:18 -0300
>From: Sheldon Whynott <whynott@ug.cs.dal.ca>
>Subject: Getting the sdk to work with borland c++ 3.1
>
>I am having a few problems getting the files to work with borland c++ 3.1
>could someone help me with setting up the sdk to work with ver 3.1
>the trouble may be in setting up the make files.  I have masm version 5.0
>I just need the steps needed to get the sdk working with borland.  thanks.

There are some defines that you need to set up on the bcc command line.  One 
is TRHEE_1 (I think).  If you look in some of the include files that come 
with the documentation you should be able to figure these out pretty 
quickly.  Let me know if you still have problems and I'll see which ones I 
use (but never look at or think about anymore).

Dave

David MacMahon
Systems Administrator
davidm@marcam.com  <---New address, use this one
davidm@opl.com     <---Old address, don't use this one

------------------------------

Date: Mon, 18 Oct 1993 15:22:59 -0400
From: davidm@marcam.com (David MacMahon)
Subject: Re: Sample Control Register & Half-way Support

>Date: Fri, 15 Oct 93 2:08:50 CDT
>From: chuth@lonestar.utsa.edu (Cornel H. Huth)
>Subject: Sample Control Register & Half-way Support
>
[quote deleted]
>I've found the Appendix docs to be a rough draft of what's already in the
>main section, at least when it comes to register descriptions. For a
>rather complete run-down on the sampling control register (49h) check
>out page 17.  I've yet to find a use for the Appendix stuff; it being
>so incomplete as to be useless.

All of the control bits of the various registers are not documented in the 
appendix because the appendix only documents those bits that the programmer 
can set when passing control bits to the SDK functions.  The first thing 
that the SDK functions do is mask out the bits that aren't documented in the 
appendix.  Then the SDK functions set these masked bits to values which are 
"appropriate" for the operation being performed.  This is done, I presume, 
to protect the prorammer from doing things that don't make sense.  In some 
cases, whether or not a bit that is masked really *needs* to be masked from 
the programmer could be open to discussion.  If a bit does *need* to be 
masked, it's appropriate value should be apparent.  As the SDK stands now, 
however, the bits that are mentioned in the appendices are the only bits 
that you as a programmer can pass to the SDK functions (with the exception 
of bit 7 for sampling control as mentioned in my previous message).  You can 
pass the other bits, but they are ignored.

Dave

David MacMahon
Systems Administrator
davidm@marcam.com  <---New address, use this one
davidm@opl.com     <---Old address, don't use this one

------------------------------

End of GUS Programmer's Digest V5 #15
*************************************

To post to tomorrow's digest:               <gus-sdk%itchy@dsd.es.com>
To (un)subscribe or get help:       <gus-sdk-request%itchy@dsd.es.com>
To contact a human (last resort):     <gus-sdk-owner%itchy@dsd.es.com>

FTP sites:         archive.epas.utoronto.ca         pub/pc/ultrasound
                   wuarchive.wustl.edu       systems/msdos/ultrasound
Hints:
      - Get the FAQ from the FTP sites or the request server.
      - Mail to <gus-sdk-request%itchy@dsd.es.com> for info about
	other GUS related mailing lists (UNIX, OS/2, GUS-MIDI, etc.)



