TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: FLORIAN SCHAEFER
from: CRAIG HART
date: 1997-02-21 09:07:00
subject: Detect SoundBlaster`s DMA

Hi..
 > I've got a big Problem... I want to write an autodetection-routine for
 > Soundblaster-Cards. Getting the right Port is no Problem. But I don't
 > know how to find out the right DMA-Channel.
 It's linked to the IRQ detection.
You simply try all DMA channels and IRQ's until you find the one that works.
some psuedo code:
for dma=0 to 7 do
  for irq = 0 to 15 do
      play a 1 byte sample using DMA so that an irq is triggered.
      did our ISR go off?
      no : try next values
      yes : OK we have the settings!!
end.
you could also read the BLASTER Environment variable, or if you detect a SB 
16, read the software configuration registers.
Get the Creative SB developers pack from their website if you have internet 
access.
    Craig
--- FMail/386 1.0g
---------------
* Origin: Communications Barrier BBS (03) 9585 1112, 24hrs (3:632/533)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.