Re: [AD] Patch for fixed bugs with Soundscape DOS driver |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Hi !
Angelo Mottola wrote:
>So I compared the old and the new code, and I found a really strange bug:
the WIP uses outportb() and inportb() functions for ports I/O, while the old
Allegro 3.12 uses inp() and outp().
I've written the Soundscape Driver and use it every day, even with the most
recent versions of GCC and Allegro WIP. I cannot say, that I have any
problems with, for me it works!
>I've also found another small bug in the IRQ handler, that was making the
sound output a bit distorted, and I've fixed it too. Here's the patch; I hope
it comes in time for WIP 3.9.33!!
Changing soundscape_dma_count > 16 to > 15 may make buffer switching more
accurate - so it looks one interrupt earlier if dma is done (you could set
this > 8 or rip it away at all). So if it helps, why not.
But maybe you have one of the other chipsets I couldn't test and had to take
the source parts from the original resources. Then strange things may happen,
but the driver is now working for a long time without problems.
CU
Andy