delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/09/06:31:05

Message-ID: <F77915E7F086D31197F4009027CC81C907FB9A@probe-2.as-london.acclaim.com>
From: Shawn Hargreaves <SHargreaves AT acclaimstudios DOT co DOT uk>
To: djgpp AT delorie DOT com
Subject: Re: Sound Blaster and 16bits WAV files.
Date: Tue, 9 Nov 1999 11:04:52 -0000
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Reply-To: djgpp AT delorie DOT com

cberczely AT my-deja DOT com writes:
> Hi, could someone point me to a source code to
> play 16 bits WAVs with a
> Sound Blaster?

You could look at the sb.c and dma.c files from Allegro.

> I could play only 8bits sounds, but it is hard to
> find something for
> 16bits...

It's pretty much the same as 8 bit mode, except that you
have to feed different magic numbers to the DMA controller
and SB DAC controller. Search the Allegro sb.c for
references to sb_16bit, and wherever that occurs, that's
where you need to change something from the 8 bit mode.


	Shawn Hargreaves.

- Raw text -


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