www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/03/22:03:15

Xref: news2.mv.net comp.os.msdos.djgpp:4538
From: Shawn Hargreaves <slh100 AT york DOT ac DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: getting the sb16 into stereo mode
Date: Mon, 3 Jun 1996 22:07:26 +0100
Organization: The University of York, UK
Lines: 22
Message-ID: <Pine.SGI.3.91.960603215946.23823B-100000@tower.york.ac.uk>
NNTP-Posting-Host: tower.york.ac.uk
Mime-Version: 1.0
In-Reply-To: <4ovcas$4r5@news.iag.net>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Mon, 3 Jun 1996 thomas AT unix DOT cde DOT com wrote:

> Does anyone have any sample code that is easy to read on getting the
> sb16 into stereo playback.  I have a player I made and it does up to

My Allegro library contains code for using the SB16 in stereo: check out 
ftp://x2ftp.oulu.fi/pub/msdos/programming/djgpp2/alleg20.zip. Basically 
you set up your DMA transfer with a different command byte to the SB DSP 
chip (for a good list of DSP commands, look at the SBlaster docs: I found 
these on x2ftp, or can mail them to you if you can't find them). Once 
you've programmed the card for a stereo transfer you feed it twice as 
much data, with the left and right channels interleaved, eg. the first 
word is the left channel, second word is right channel, third word is 
left channel again, etc.


/*
 *	Shawn Hargreaves.        Why is 'phonetic' spelt with a ph?
 *	Check out Allegro and FED on http://www.york.ac.uk/~slh100/
 */


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019