From mailserv@gaia.ucs.orst.edu Wed Jun 15 22:12:22 1994
Precedence: Bulk
Date: Tue Jun 14 14:04:14 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 V12 #2

GUS Programmer's Digest     Tue, 14 Jun 94 14:04 PST     Volume 12: Issue   2 

Today's Topics:
                    GUS Programmer's Digest V12 #1
                                 help
                Porting SDK to QNX (and 3D libraries)
                         Starting a voice...
                            voice starting

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, 14 Jun 1994 10:42:00 +0200 (MET DST)
From: appel@stack.urc.tue.nl (Stanley Appel)
Subject: Re: GUS Programmer's Digest V12 #1

> Date: Thu, 02 Jun 1994 23:11:50 MDT
> From: mymelanson@uccs.edu
> Subject: Starting a voice...
> 
> Everyone,
> 	Here I am plowing through the UltraSound SDK and countless ASM source
> code examples trying to figure out how to program the GUS and I noticed one
> thing that seems to be missing from each source:  How to make a voice start
> playing.  The SDK says lots about how to make a voice stop playing but I can't
> find anything that explicitly states how to make a voice start playing.  The
> best that I can figure out is to clear the lower 2 bits of the voice control
> register, the one that signals a stopped voice and the one that can manually
> halt a voice.  But this doesn't seem to work.  Any ideas?
> 	Thanks...
> 		 -Mike
Just turn of the stop bits and it will run like a charm.

Stanley


+===============================================================+
|  Stanley Appel                          I cant have said that |
|  Hoolstraat 73                          because I cant        |
|  4847 AB  Teteringen                    even speak english    |
|  The Netherlands                        right.......          |
|                                                               | 
|  Tel +31-76-810346                                            | 
|  EMail APPEL@STACK.URC.TUE.NL (pref)                          |
|        s390058@STUD.TUE.NL                                    |
+===============================================================+

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

Date: Wed, 8 Jun 94 10:20:34 CDT
From: mayoral@disney.donnelley.com (Jim Mayoral)
Subject: help

HELP

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

Date: Mon, 6 Jun 94 14:40:21 BST
From: Rycharde Hawkes <rych@hagg.psy.ed.ac.uk>
Subject: Porting SDK to QNX (and 3D libraries)

Hi,

I'm just starting to delve into GUS programming, but before I can do that
I've got to port the SDK to the OS we use, QNX (4.2), a little known and
even less used PC OS.  I didn't see any reference to it in the FAQ and
I'm wondering whether anyone has already ported the SDK to this platform?
If not then in a nutshell it is a multi-tasking OS that uses the 80x86
in virtual mode.  Has anyone ported the SDK to another multi-tasking OS?
The biggest problem that I can see is that in an interrupt handler only
one 64K data segment can be accessed under QNX.  Is this the same on other
OSes?  This has potentially disastrous implications if you have user-defined
callbacks to the interrupt routines.  And then there's DMA...  

On another (unrelated) note, I notice the 3D libraries weren't in the
gusdk210.zip file I picked up.  There is no mention in the FAQ as to where 
I can get them from.  Anybody know?

Any help appreciated,

Rych

======================================================================
Rycharde Hawkes				email: rych@hagg.psy.ed.ac.uk
Virtual Environment Laboratory		quics: rjhawkes
Dept. of Psychology			Tel  : +44 31 650 3426
Univ. of Edinburgh			Fax  : +44 31 650 6534

	"When you have eliminated the possible and the impossible,
		the only course of action is suicide."
======================================================================

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

Date: Thu, 02 Jun 1994 23:11:50 MDT
From: mymelanson@uccs.edu
Subject: Starting a voice...

Everyone,
	Here I am plowing through the UltraSound SDK and countless ASM source
code examples trying to figure out how to program the GUS and I noticed one
thing that seems to be missing from each source:  How to make a voice start
playing.  The SDK says lots about how to make a voice stop playing but I can't
find anything that explicitly states how to make a voice start playing.  The
best that I can figure out is to clear the lower 2 bits of the voice control
register, the one that signals a stopped voice and the one that can manually
halt a voice.  But this doesn't seem to work.  Any ideas?
	Thanks...
		 -Mike

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

Date: Tue, 14 Jun 1994 09:04:51 +0100 (MET DST)
From: "Michal Weis [aka Infi]" <weis@elf.stuba.sk>
Subject: voice starting

Hi,

> 	Here I am plowing through the UltraSound SDK and countless ASM source
> code examples trying to figure out how to program the GUS and I noticed one
> thing that seems to be missing from each source:  How to make a voice start
> playing.  The SDK says lots about how to make a voice stop playing but I can't
there is written enought info about voice-start... (i think)

> find anything that explicitly states how to make a voice start playing.  The
> best that I can figure out is to clear the lower 2 bits of the voice control
> register, the one that signals a stopped voice and the one that can manually
heh, may be you didn't set all info:
try this:

- stop wanted voice
- set sample start, sample end marker, sample posision (current)
- set volume (aprox 4095 *grin*), panning (8 for centre)
- set pitch aprox 1 (now don't care about pitch
- disable volume raming and envelope irq on volume control register
- disable sample looping, set direction to forward, dizable position irq
  pendin
- and now just enable voice (unstop it) and you'll hear the sound...
(if it works *g*, but works fine on my (i'm programming my GUZ, of course ;)

mike

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

End of GUS Programmer's Digest V12 #2
*************************************

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


