From: Joseph Morris Newsgroups: comp.os.msdos.djgpp Subject: Re: SB128 PCI IRQ-handling problems Date: Mon, 15 May 2000 20:49:56 +0100 Lines: 44 Message-ID: <392054E4.ACABF87A@it-he.org> References: NNTP-Posting-Host: jpmorris.force9.co.uk (212.56.119.112) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: fu-berlin.de 958420084 82833 212.56.119.112 (16 [28722]) X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.3.99-pre3 i586) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Stephan Diestelhorst wrote: > > Dear djgpp folks, > I'm in serious trouble with the Creative Labs soundcard SB128 PCI. I > wrote my own soundlibrary, (perhaps published soon) which worked well on > SB Pro and also on SB128 in the DOS Box of Win98. > But under DOS-Mode of Win98 my IRQ-handler doesn't seem to be called > correctly by the soundcard (better to say it's driver). > > The handler is just a protected mode handler written in assembly. > I suppose that this are some protected mode problems, as the driver of the > soundcard is using VCPI stuff to emulate the SB 16 (could be exception > handling for several ports, etc.) > > It is also strange that games like Quake I or DOOM (which are also using > protected mode) work fine. > I should point out that Quake and DOOM have pretty insane audio code and should NOT be relied on as 'normal' programs. Quake, for example, doesn't use interrupts AT ALL.. it watches the DMA counter and then forces a retrigger when it reaches a certain point. DOOM's audio code is closed-source, but it also does some unpleasant things (e.g. POP EAX to clear interrupts without the V86 knowing) that cause nightmares for 32-bit kernels such as DRDOS EMM386 or the Linux DOSemu. Do other DJGPP programs than Quake work? Have you tried Allegro, for example? > Of course I can't expect to get detailed instructions, but I hope that > some of you had simillar problems and/or could give any advice. > > Thanks for any support/help in advance, > Stephan Diestelhorst aka. SyoN -- JP Morris - aka DOUG the Eagle (Dragon) -=UDIC=- doug AT it-he DOT org Fun things to do with the Ultima games (http://www.it-he.org) Developing a U6/U7 clone (http://fly.to/ire) d+++ e+ N+ T++ Om U1234!56!7'!S'!8!9!KA u++ uC+++ uF+++ uG---- uLB---- uA--- nC+ nR---- nH+++ nP++ nI nPT nS nT wM- wC- y a(YEAR - 1976)