Mail Archives: djgpp/1999/11/09/06:31:05
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 -