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


GUS Programmer's Digest     Fri, 25 Feb 94  4:28         Volume 9: Issue  16  

Today's Topics:
                       Miles driver functions?

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: Thu, 24 Feb 1994 23:33:40 +0200 (EET)
From: Timo M J Jantunen <jeti@alpha.hut.fi>
Subject: Miles driver functions?

I just read somewhere, that Origin isn't going to do GUS support to 
Ultima 8, and went to look, could it be done to Ultima 7 part 2.

I quickly managed to get intro sounds (almost) working (both midi and 
digi - normal (but old) miles drivers were used during it), but that
didn't work during game.

Drivers which were used during game, were stored to snddrvrs.dat. It 
containend four different miles drivers (adlib midi, MT32 midi, sb digi 
and sbp digi). After examining the drivers I decided that they looked 
same enough than in separate files, and replaced them with GUS miles 
drivers, and fixed it's (very simple) directory structure.

 ..and tried...

and IT WORKED...well, almost. I got 'adlib' sounds working (MUCH better 
sounding than with sbos, excluding sound effects, which were horrible but 
could be turned off).

BUT, whenever I try to use MT32 midi or either digi driver, game exits to 
dos saying, that it can't initialize card.

Next I started examining miles drivers themself, and managed to solve few
(very few) basic things about it's structure (it seems to use function
numbers and table to jump to code). It also seems that GUS driver could have
difficulties with dos calls (which it uses to communicate with ultramid),
or something like that (woodoo might not like that).

Then things started to go difficult, because it is rather hard to read code
and guess what it would do on adlib or roland, without any documentation
(and wouldn't be much easier with it), so:

Do anyone know where I could get information about miles drivers?
(Mainly, which function # does what. I'm particulary interested in functions
concerning initializing cards.)

OR, do someone know about miles drivers for GUS, which don't use ultramid?
(better, since loading ultramid means not to load _anything_ else, like
disk cache or mouse driver!) 32 bit drivers don't work, because they use
32 bit offsets.

OR, how we could have Origin do GUS drivers. Even poor ones - it can't be too
hard, because I managed to do it in two hours without any knowledge about
miles drivers or U7.5 data/program structures.


// /
--
timo.jantunen@hut.fi........................................ Timo Jantunen .
jeti@vinkku.hut.fi  . The number of UNIX installations has . JMT 11 J 204  .
jeti@niksula.hut.fi . grown to 10, with more expected.     . 02150 Espoo   .
jeti@vipunen.hut.fi .       (The UNIX Programmer's Manual, . Puh:90-464429 .
 ....................             2nd Edition, June, 1972) .................

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

End of GUS Programmer's Digest V9 #16
*************************************

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

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@dsd.es.com> for info about other GUS
	related mailing lists (general use, musician's, etc.).



