Apparently-To: john.smith@gravis.com


GUS Programmer's Digest     Tue, 12 Apr 94 16:42 PST     Volume 10: Issue   6 

Today's Topics:
                             1meg = 1meg?
                            GUS MIXER DOCS
                    MCI "SET alias SAMPLESPERSEC"
                           S3M programming

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: Tue, 12 Apr 1994 18:26:03 -0500
From: "John R. Wheatley" <wheatjr@eng.auburn.edu>
Subject: 1meg = 1meg?

Can the entire 1M of dram be accessed in C using the
sdk routines?  In other words, can I load exactly
1M of sample data into a gus with 1M with no
side effects?  
When I use patch manager, it says I have slightly
less free than what is installed.
John wheatley 

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

Date: Tue, 12 Apr 94 02:18:19 -0600
From: cornel.huth@lchance.sat.tx.us
Subject: GUS MIXER DOCS

1. Would it be possible for the technical support folk at Forte
   to post the necessary documentation to program those GUSes 
   that include a mixer?

   a. Needed would be any and all ports, layout of ports, perhaps
      just a bit of supporting code (not too necessary on the
      code), and how to determine if the hardware has this feature.

3. Is there a way to determine the hardware features on later-
   model GUSes, as in the joy port enable bit, mixer, etc.?

 Internet: cornel.huth@LChance.sat.tx.us  or  cornel@ephsa.sat.tx.us
 Fidonet: 1:387/800.8
 BSS: 40th Floor v32b@1(210)684-8065 M-F:5pm-9am/WE:1pm-9am [-0500]
 

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

Date: Tue, 12 Apr 1994 13:47:28 -0300 (EDT)
From: slade mitchell r <11smitch@mach1.wlu.ca>
Subject: MCI "SET alias SAMPLESPERSEC"

I have a problem with the GUS Windows drivers that I asked for help for a
few months ago.  Unfortunately, I didn't receive any response. Since my
problem appears to be with the implementation of the Windows drivers, I
figured that someone on this group should be able to help me.

Situation:  We have an application that we are developing which uses .WAV
files of anywhere from 1/2 to 2 or 3 hours in length.  Our application
must be able to play them back at, currently, 3 different speeds.  Because
of the GUS drivers' limitations, we have to keep _3_ copies of the .WAV
files (1 at each speed) available to the application. Needless to say,
HUGE DISK SPACE REQUIREMENTS.

My problem is relatively simple: I want to be able to send the MCI command
"SET alias SAMPLESPERSEC newrate" to change the playback rate of a .WAV
file in Windows.  All of the documentation that I have about MCI commands
for waveform audio indicate that this command should be supported by ALL
waveaudio devices.  The GUS drivers, however, return a message telling me
that the command is in the "wrong sequence".  I've tried a _large_ number
of 'sequences' for the command but to no avail.

My Questions:
1.  Is the  "SET ... SAMPLESPERSEC" MCI command actually supported/
implemented in the GUS Windows drivers?
2.  If so, what is the exact syntax to use it?
3.  If not, can someone out there suggest if/how I can modify the Windows
drivers to accept this command?  (I have Visual C++ and the GUSDK210)
4.  Is there someone at Gravis that I can talk to (ie. email)?

I appreciate any help that you can provide!  Please respond directly
through email.
Slade
 ------------------------------------------------------------------
11smitch@mach1.wlu.ca         | 
Slade Mitchell                |  " The sleeper has awakened ... "
Software Support Services     |                 
 ------------------------------------------------------------------

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

Date: Tue, 12 Apr 1994 01:18:11 -0400
From: Ken Hornstein <kenh@wrl.epi.com>
Subject: Re: S3M programming

>Anyway, I was wondering how you would INIT the Gravis, Play the Gravis etc as
>that SDK stuff is all in C++ which is horrid.  I am writing the code using
>TASM and PMODE v2.4 from Tran of Renaissance.  I really need help on 
>accessing the Gravis from assembly.

I'm not quite sure which SDK you're referring to, but the one from Gravis
is straight C; I didn't see any C++ anywhere.

Personally, I always found the SDK code to be pretty straightforward; while
I can't use for the stuff I'm doing with the GUS, I never had any problems
taking the necessary functionality out of the SDK code and adapting it to my
application.  There isn't a whole lot of complicated logic in the utility
functions; mostly it's just bit shifting and port I/O, both of which are
pretty easy in assembler.  If I were you, I'd duplicate all the gravis-
supplied functions in the SDK with your own assembler routines, and go from
there.

--Ken

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

End of GUS Programmer's Digest V10 #6
*************************************

To post to tomorrow's digest:                    <gus-sdk@mail.orst.edu>
To (un)subscribe or get help:            <gus-sdk-request@mail.orst.edu>
To contact a human (last resort):          <gus-sdk-owner@mail.orst.edu>

FTP Sites              Archive                       Directories
---------              -------                       -----------
Main N.American Site:  archive.orst.edu              pub/packages/gravis
                       wuarchive.wustl.edu           systems/ibmpc/ultrasound
Main Asian Site:       nctuccca.edu.tw               PC/ultrasound
European Callers ONLY: theoris.rz.uni-konstanz.de    pub/sound/gus
Submissions:           archive.epas.utoronto.ca      pub/pc/ultrasound/submit
Newly Validated Files: archive.epas.utoronto.ca      pub/pc/ultrasound
Mirrors:               garbo.uwasa.fi                mirror/ultrasound
 
MailServer For Archive Access: Email to <mail-server@nike.rz.uni-konstanz.de>

Hints:
      - Get the FAQ from the FTP sites or the request server.
      - Mail to <gus-sdk-request@mail.orst.edu> for info about other GUS
	related mailing lists (general use, musician's, etc.).



