From mailserv@gaia.ucs.orst.edu Mon Apr 18 18:14:16 1994
Precedence: Bulk
Date: Mon Apr 18 15:24:13 PDT 1994
From: gus-sdk-request@gaia.ucs.orst.edu (GUS Programmer's Server)
Reply-To: gus-sdk@gaia.ucs.orst.edu (GUS Programmer's Digest)
Subject: GUS Programmer's Digest V10 #11

GUS Programmer's Digest     Mon, 18 Apr 94 15:24 PST     Volume 10: Issue  11 

Today's Topics:
                         gus/ adlib detection
                           Help me please!
                          panning positions
                           Sample GUS code

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: Sun, 17 Apr 1994 22:05:30 -0700 (PDT)
From: Shane Conder <saconder@olympus.net>
Subject: gus/ adlib detection

My friend is working on a game and currently does not have a GUS, but I
do.  (He will be getting one soon.)

Right now he only is using adlib fm, so he has an adlib detection routine.
It is detecting that I have adlib, even when SBOS isn't loaded.  Of
course, this means that his game thinks I have an adlib and is playing
music, but since I don't, there is no music.

Does anyone have an adlib detection routine that won't do this?

Also,

Is there any source anywhere for a MIDI player (for the gus), (or rol cmf)??

I got the SDk v2.1, but the source for the midi player seemed incomplete.

Shane  [saconder@sq.olympus.net]

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

Date: Mon, 18 Apr 1994 11:13:29 -0400
From: davidm@marcam.com (David MacMahon)
Subject: Help me please!

>Date: Fri, 15 Apr 1994 12:00:04 +0100 (BST)
>From: A Clark <a3_clark@pat.uwe.ac.uk>
>Subject: Help me please!
>
> Please, please, please can someone help me? I've looked through all the
>sample files in the SDK (V2.10) and I can't find a function named
>UltraGetCfg() which is referenced in the sample program.

Apparently, you didn't look in the UTILITY subdirectory.  If you had, you 
would have found CONFIG.C as well as .LIB files for this and other utility 
functions.  The SDK may be free for the taking, but you need to be willing 
to spend some time working with it if you want to utilize it fully.

>If anyone out there could also give me some
>advice on a recording routine I would also be grateful. My project
>requires a recording period of a few minutes, and therefore I'm using
>extended memory as main store for the samples, while recording and
>transferring from a buffer/buffers in main memory.

Why not record to a file instead of extended memory.  That way you can use a 
RAM drive if you really want to use extended memory, but you can also record 
directly to the hard disk.

>So far I've tried
>two different schemes for achieving this. The first was to use
>UltraRecordData in a continuous recording loop, and use
>UltraReadRecordPosition to trigger transfer of half the buffer into
>extended memory, while the end-of-record interrupt would trigger
>transfer of the second half of the buffer. This caused problems as
>the virtual DMA services provided by EMM386 was too slow, and thus
>it took a couple of seconds before UltraReadRecordPosition came
>back with a value. This was solved by removing EMM386 from the
>config.sys but I intended this program to work without too much change
>to the system setup.

Removing EMM386 has been the only solution that I have used so far.  I am 
trying to figure out the inner workings of EMM386.EXE.  I thought that this 
would mean learning about VCPI, but the VCPI spec doesn't seem to mention 
DMA at all.  I'm still working on this.

>Even with EMM386 removed I still encountered some
>problems so I tried another approach. This time I decided I would try
>priming a record into a second buffer while recording into the first, 

Don't do it this way.  Use your first method (or a slightly modified version 
of it).

Good luck with your project,
Dave

David MacMahon
Software Engineer
davidm@marcam.com

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

Date: Mon, 18 Apr 1994 08:34:07 +0100 (MET DST)
From: "Michal Weis [aka Infi]" <weis@elf.stuba.sk>
Subject: panning positions

Hi,

> If there are 16 panning positions, with 0 and 15 being the
> extremes, what position is perfectly centered?
approximatle 7 or 8. generaly using this values you cannot recognize where
it is (little more in left or little more in right) - both looks like in
centre.

mike

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

Date: Sun, 17 Apr 1994 16:54:59 -0700 (PDT)
From: mikebat@netcom.com (Mike Batchelor)
Subject: Sample GUS code

I may actually have to break down and do some GUS programming in the near
future.  I've never programmed the GUS, in fact, never programmed any type
of sound device.  I'd like to find some good sample code.  What do you
use?  The application I have in mind will be digital sound only, both
sampling and playback, and mixing several sources on-board the GUS (on
board mixing is one of the reasons I gave for why I recommend the
Ultrasound, so now I have to cough up something that does it :).

C code for the Rational extender environment is a plus.

-- 
Mike Batchelor      | UseLinuxUseLinuxUseLinuxUseLinuxUseLinuxUseLinuxUseLinux
mikebat@netcom.com  | xuniLesUxuniLesUxuniLesUxuniLesUxuniLesUxuniLesUxuniLesU
 -----------------------------------------------------------------------------
Plug 'N' Play:  A specification invented by Microsoft and Intel which
enables a computer and its operating system to create hardware conflicts
without user intervention.

No more jumpers to misplace!  The computer will misplace them for you.

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

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

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.).


