Mail Archives: djgpp/2000/05/15/17:30:38
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)
- Raw text -